File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/com/example/examplemod Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -46,12 +46,12 @@ public class ExampleMod {
4646 public static final DeferredRegister <CreativeModeTab > CREATIVE_MODE_TABS = DeferredRegister .create (Registries .CREATIVE_MODE_TAB , MODID );
4747
4848 // Creates a new Block with the id "examplemod:example_block", combining the namespace and path
49- public static final DeferredBlock <Block > EXAMPLE_BLOCK = BLOCKS .registerSimpleBlock ("example_block" , BlockBehaviour . Properties . of () .mapColor (MapColor .STONE ));
49+ public static final DeferredBlock <Block > EXAMPLE_BLOCK = BLOCKS .registerSimpleBlock ("example_block" , p -> p .mapColor (MapColor .STONE ));
5050 // Creates a new BlockItem with the id "examplemod:example_block", combining the namespace and path
5151 public static final DeferredItem <BlockItem > EXAMPLE_BLOCK_ITEM = ITEMS .registerSimpleBlockItem ("example_block" , EXAMPLE_BLOCK );
5252
5353 // Creates a new food item with the id "examplemod:example_id", nutrition 1 and saturation 2
54- public static final DeferredItem <Item > EXAMPLE_ITEM = ITEMS .registerSimpleItem ("example_item" , new Item . Properties () .food (new FoodProperties .Builder ()
54+ public static final DeferredItem <Item > EXAMPLE_ITEM = ITEMS .registerSimpleItem ("example_item" , p -> p .food (new FoodProperties .Builder ()
5555 .alwaysEdible ().nutrition (1 ).saturationModifier (2f ).build ()));
5656
5757 // Creates a creative tab with the id "examplemod:example_tab" for the example item, that is placed after the combat tab
You can’t perform that action at this time.
0 commit comments