diff options
| author | shartte <shartte@users.noreply.github.com> | 2023-12-05 08:32:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-05 08:32:49 +0100 |
| commit | d7c9899f0988a610b7e4c18e60b126495cdfa4ea (patch) | |
| tree | 2ed908284daba019c161e97d2d3b32110e9c12c2 /src | |
| parent | 6a48e0669d910f4fa1f8ae4131564a7117e1f0db (diff) | |
Update to NeoForge 20.2 stable and newer NeoGradle (#21)
* Bump NeoGradle and remove 3G memory settings for Gradle, since the memory for decompilation is no longer inherited from Gradles memory settings since NeoGradle 7.0.56.
* Bump NeoForge to stable for 1.20.2
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/java/com/example/examplemod/ExampleMod.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/example/examplemod/ExampleMod.java b/src/main/java/com/example/examplemod/ExampleMod.java index e967e83..4f50275 100644 --- a/src/main/java/com/example/examplemod/ExampleMod.java +++ b/src/main/java/com/example/examplemod/ExampleMod.java @@ -46,12 +46,12 @@ public class ExampleMod public static final DeferredRegister<CreativeModeTab> CREATIVE_MODE_TABS = DeferredRegister.create(Registries.CREATIVE_MODE_TAB, MODID); // Creates a new Block with the id "examplemod:example_block", combining the namespace and path - public static final DeferredBlock<Block> EXAMPLE_BLOCK = BLOCKS.registerBlock("example_block", BlockBehaviour.Properties.of().mapColor(MapColor.STONE)); + public static final DeferredBlock<Block> EXAMPLE_BLOCK = BLOCKS.registerSimpleBlock("example_block", BlockBehaviour.Properties.of().mapColor(MapColor.STONE)); // Creates a new BlockItem with the id "examplemod:example_block", combining the namespace and path - public static final DeferredItem<BlockItem> EXAMPLE_BLOCK_ITEM = ITEMS.registerBlockItem("example_block", EXAMPLE_BLOCK); + public static final DeferredItem<BlockItem> EXAMPLE_BLOCK_ITEM = ITEMS.registerSimpleBlockItem("example_block", EXAMPLE_BLOCK); // Creates a new food item with the id "examplemod:example_id", nutrition 1 and saturation 2 - public static final DeferredItem<Item> EXAMPLE_ITEM = ITEMS.registerItem("example_item", new Item.Properties().food(new FoodProperties.Builder() + public static final DeferredItem<Item> EXAMPLE_ITEM = ITEMS.registerSimpleItem("example_item", new Item.Properties().food(new FoodProperties.Builder() .alwaysEat().nutrition(1).saturationMod(2f).build())); // Creates a creative tab with the id "examplemod:example_tab" for the example item, that is placed after the combat tab |
