1- package com .jingy .jineric .registry ;
2-
3- import com .jingy .jineric .Jineric ;
4- import net .minecraft .item .BlockItem ;
5- import net .minecraft .item .FoodComponent ;
6- import net .minecraft .item .Item ;
7- import net .minecraft .item .ItemGroup ;
8- import net .minecraft .util .Identifier ;
9- import net .minecraft .util .registry .Registry ;
10-
11- public class ModItems {
12-
13- //ITEMS :
14-
15- //FOODS:
16- public static final Item GOLDEN_POTATO = new Item (
17- new Item . Settings (). group ( ItemGroup . FOOD ). food ( new FoodComponent . Builder (). hunger ( 6 ). saturationModifier ( 14.4f ). build ()));
18-
19- public static final Item GOLDEN_SWEET_BERRIES = new Item (
20- new Item . Settings (). group ( ItemGroup . FOOD ). food ( new FoodComponent . Builder (). hunger ( 5 ). saturationModifier ( 8f ). build ()));
21-
22- public static final Item GOLDEN_BEETROOT = new Item (
23- new Item . Settings (). group ( ItemGroup . FOOD ). food ( new FoodComponent . Builder (). hunger ( 4 ). saturationModifier ( 5f ). build ()));
24-
25- //BLOCK ITEMS:
26- public static final BlockItem CORRITE = new BlockItem (ModBlocks .CORRITE , new Item . Settings (). group ( ItemGroup . BUILDING_BLOCKS ));
27- public static final BlockItem BORITE = new BlockItem (ModBlocks .BORITE , new Item . Settings (). group ( ItemGroup . BUILDING_BLOCKS ));
28- public static final BlockItem WAVY_SANDSTONE = new BlockItem (ModBlocks .WAVY_SANDSTONE , new Item . Settings (). group ( ItemGroup . BUILDING_BLOCKS ));
29- public static final BlockItem SOUL_SANDSTONE = new BlockItem (ModBlocks .SOUL_SANDSTONE , new Item . Settings (). group ( ItemGroup . BUILDING_BLOCKS ));
30- public static final BlockItem CUT_SOUL_SANDSTONE = new BlockItem (ModBlocks .CUT_SOUL_SANDSTONE , new Item . Settings (). group ( ItemGroup . BUILDING_BLOCKS ));
31- public static final BlockItem CHISELED_SOUL_SANDSTONE = new BlockItem (ModBlocks .CHISELED_SOUL_SANDSTONE , new Item . Settings (). group ( ItemGroup . BUILDING_BLOCKS ));
32- public static final BlockItem WAVY_SOUL_SANDSTONE = new BlockItem (ModBlocks .WAVY_SOUL_SANDSTONE , new Item . Settings (). group ( ItemGroup . BUILDING_BLOCKS ));
33- public static final BlockItem SMOOTH_SOUL_SANDSTONE = new BlockItem (ModBlocks .SMOOTH_SOUL_SANDSTONE , new Item . Settings (). group ( ItemGroup . BUILDING_BLOCKS ));
34-
35- public static void registerItems () {
36- ///ITEMS:
37- Registry . register ( Registry . ITEM , new Identifier ( Jineric . MOD_ID , "golden_potato" ), GOLDEN_POTATO );
38- Registry .register (Registry .ITEM , new Identifier (Jineric .MOD_ID , "golden_sweet_berries " ), GOLDEN_SWEET_BERRIES );
39- Registry .register (Registry .ITEM , new Identifier (Jineric .MOD_ID , "golden_beetroot " ), GOLDEN_BEETROOT );
40-
41- //BLOCKS:
42- Registry . register ( Registry . ITEM , new Identifier ( Jineric . MOD_ID , "corrite" ), CORRITE );
43- Registry .register (Registry .ITEM , new Identifier (Jineric .MOD_ID , "borite " ), BORITE );
44- Registry .register (Registry .ITEM , new Identifier (Jineric .MOD_ID , "wavy_sandstone " ), WAVY_SANDSTONE );
45- Registry .register (Registry .ITEM , new Identifier (Jineric .MOD_ID , "soul_sandstone " ), SOUL_SANDSTONE );
46- Registry .register (Registry .ITEM , new Identifier (Jineric .MOD_ID , "cut_soul_sandstone " ), CUT_SOUL_SANDSTONE );
47- Registry .register (Registry .ITEM , new Identifier (Jineric .MOD_ID , "chiseled_soul_sandstone " ), CHISELED_SOUL_SANDSTONE );
48- Registry .register (Registry .ITEM , new Identifier (Jineric .MOD_ID , "wavy_soul_sandstone " ), WAVY_SOUL_SANDSTONE );
49- Registry .register (Registry .ITEM , new Identifier (Jineric .MOD_ID , "smooth_soul_sandstone " ), SMOOTH_SOUL_SANDSTONE );
50- }
51-
52- }
1+ package com .jingy .jineric .registry ;
2+
3+ import com .jingy .jineric .Jineric ;
4+ import net .minecraft .item .BlockItem ;
5+ import net .minecraft .item .FoodComponent ;
6+ import net .minecraft .item .Item ;
7+ import net .minecraft .item .ItemGroup ;
8+ import net .minecraft .util .Identifier ;
9+ import net .minecraft .util .registry .Registry ;
10+
11+ public class Items {
12+
13+ //FOODS :
14+ public static final Item GOLDEN_POTATO = new Item (
15+ new Item . Settings (). group ( ItemGroup . FOOD ). food ( new FoodComponent . Builder (). hunger ( 6 ). saturationModifier ( 14.4f ). build ()));
16+
17+ public static final Item GOLDEN_SWEET_BERRIES = new Item (
18+ new Item . Settings (). group ( ItemGroup . FOOD ). food ( new FoodComponent . Builder (). hunger ( 5 ). saturationModifier ( 8f ). build ()));
19+
20+ public static final Item GOLDEN_BEETROOT = new Item (
21+ new Item . Settings (). group ( ItemGroup . FOOD ). food ( new FoodComponent . Builder (). hunger ( 4 ). saturationModifier ( 5f ). build ()));
22+
23+
24+
25+ //BLOCK ITEMS:
26+ public static final BlockItem CORRITE = new BlockItem (Blocks .CORRITE , ItemSettings . BuildingBlocks ( ));
27+ public static final BlockItem BORITE = new BlockItem (Blocks .BORITE , ItemSettings . BuildingBlocks ( ));
28+ public static final BlockItem WAVY_SANDSTONE = new BlockItem (Blocks .WAVY_SANDSTONE , ItemSettings . BuildingBlocks ( ));
29+ public static final BlockItem SOUL_SANDSTONE = new BlockItem (Blocks .SOUL_SANDSTONE , ItemSettings . BuildingBlocks ( ));
30+ public static final BlockItem CUT_SOUL_SANDSTONE = new BlockItem (Blocks .CUT_SOUL_SANDSTONE , ItemSettings . BuildingBlocks ( ));
31+ public static final BlockItem CHISELED_SOUL_SANDSTONE = new BlockItem (Blocks .CHISELED_SOUL_SANDSTONE , ItemSettings . BuildingBlocks ( ));
32+ public static final BlockItem WAVY_SOUL_SANDSTONE = new BlockItem (Blocks .WAVY_SOUL_SANDSTONE , ItemSettings . BuildingBlocks ( ));
33+ public static final BlockItem SMOOTH_SOUL_SANDSTONE = new BlockItem (Blocks .SMOOTH_SOUL_SANDSTONE , ItemSettings . BuildingBlocks ( ));
34+
35+
36+ public static void registerItems () {
37+ //ITEMS:
38+ Registry .register (Registry .ITEM , new Identifier (Jineric .MOD_ID , "golden_potato " ), GOLDEN_POTATO );
39+ Registry .register (Registry .ITEM , new Identifier (Jineric .MOD_ID , "golden_sweet_berries " ), GOLDEN_SWEET_BERRIES );
40+ Registry . register ( Registry . ITEM , new Identifier ( Jineric . MOD_ID , "golden_beetroot" ), GOLDEN_BEETROOT );
41+
42+ //BLOCKS:
43+ Registry .register (Registry .ITEM , new Identifier (Jineric .MOD_ID , "corrite " ), CORRITE );
44+ Registry .register (Registry .ITEM , new Identifier (Jineric .MOD_ID , "borite " ), BORITE );
45+ Registry .register (Registry .ITEM , new Identifier (Jineric .MOD_ID , "wavy_sandstone " ), WAVY_SANDSTONE );
46+ Registry .register (Registry .ITEM , new Identifier (Jineric .MOD_ID , "soul_sandstone " ), SOUL_SANDSTONE );
47+ Registry .register (Registry .ITEM , new Identifier (Jineric .MOD_ID , "cut_soul_sandstone " ), CUT_SOUL_SANDSTONE );
48+ Registry .register (Registry .ITEM , new Identifier (Jineric .MOD_ID , "chiseled_soul_sandstone " ), CHISELED_SOUL_SANDSTONE );
49+ Registry .register (Registry .ITEM , new Identifier (Jineric .MOD_ID , "wavy_soul_sandstone " ), WAVY_SOUL_SANDSTONE );
50+ Registry . register ( Registry . ITEM , new Identifier ( Jineric . MOD_ID , "smooth_soul_sandstone" ), SMOOTH_SOUL_SANDSTONE );
51+ }
52+ }
0 commit comments