generated from jaredlll08/MultiLoader-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Turn to proper plugin with registered task
- Loading branch information
Showing
3 changed files
with
26 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
buildSrc/src/main/java/de/griefed/generation/BlockAndItemCodeGeneratorPlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package de.griefed.generation; | ||
|
||
import org.gradle.api.Plugin; | ||
import org.gradle.api.Project; | ||
|
||
/** | ||
* Generates Forge, Fabric and Quilt block-implementations from block-definitions in a JSON-file.<br> | ||
* See <code>definitions/blocks.json</code><br> | ||
* Take note that textures for blocks must be present in <code>definitions/blocks</code> and the name of the textures | ||
* must match the ID of the block. | ||
*/ | ||
public class BlockAndItemCodeGeneratorPlugin implements Plugin<Project> { | ||
public void apply(Project project) { | ||
project.getTasks().register("blockAndItemCodeGen", GenerateBlocksAndItemsCode.class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters