1
1
package com .github .wimpingego .nnow .init ;
2
2
3
3
import com .github .wimpingego .nnow .NNOW ;
4
- import com .github .wimpingego .nnow .objects .blocks .AGSBlock ;
4
+ import com .github .wimpingego .nnow .objects .blocks .AGBlock ;
5
5
import com .github .wimpingego .nnow .objects .blocks .BookshelfChestBlock ;
6
6
import com .github .wimpingego .nnow .objects .blocks .BookshelfSlabBlock ;
7
7
import com .github .wimpingego .nnow .objects .blocks .BookshelfStairsBlock ;
8
8
import com .github .wimpingego .nnow .objects .blocks .CobbleGen ;
9
- import com .github .wimpingego .nnow .objects .blocks .CustomStairsBlock ;
10
9
import com .github .wimpingego .nnow .objects .blocks .DarkGlass ;
11
10
import com .github .wimpingego .nnow .objects .blocks .EndLantern ;
12
11
import com .github .wimpingego .nnow .objects .blocks .LavaWell ;
12
+ import com .github .wimpingego .nnow .objects .blocks .RedstoneGolemHead ;
13
13
import com .github .wimpingego .nnow .objects .blocks .SuperObsidian ;
14
14
import com .github .wimpingego .nnow .objects .blocks .SafeChestBlock ;
15
15
import com .github .wimpingego .nnow .objects .blocks .WaterWell ;
16
16
import com .github .wimpingego .nnow .objects .blocks .DoubleHighBlock ;
17
- import com .github .wimpingego .nnow .objects .blocks .golem .RedstoneGolemHead ;
17
+ import com .github .wimpingego .nnow .objects .blocks .slabs .BirchSlab ;
18
+ import com .github .wimpingego .nnow .objects .blocks .slabs .GrassSlab ;
19
+ import com .github .wimpingego .nnow .objects .blocks .slabs .LeafSlab ;
20
+ import com .github .wimpingego .nnow .objects .blocks .slabs .SpruceSlab ;
21
+ import com .github .wimpingego .nnow .objects .blocks .stairs .BirchStairsBlock ;
22
+ import com .github .wimpingego .nnow .objects .blocks .stairs .CustomStairsBlock ;
23
+ import com .github .wimpingego .nnow .objects .blocks .stairs .LeafStairsBlock ;
24
+ import com .github .wimpingego .nnow .objects .blocks .stairs .SpruceStairsBlock ;
18
25
import com .github .wimpingego .nnow .objects .blocks .traps .TrapBlock ;
19
26
import com .github .wimpingego .nnow .objects .blocks .traps .TrapType ;
20
27
import com .github .wimpingego .nnow .objects .blocks .BeekeeperBlock ;
@@ -46,24 +53,23 @@ public class BlockList {
46
53
public static final DeferredRegister <Block > BLOCKS = new DeferredRegister <>(ForgeRegistries .BLOCKS ,NNOW .MOD_ID );
47
54
48
55
//Traps
49
-
50
56
public static final RegistryObject <Block > TRAP_BLOCK = BLOCKS .register ("trap_block" ,() -> new TrapBlock (Block .Properties .from (Blocks .IRON_BLOCK ).harvestTool (ToolType .PICKAXE ),TrapType .FAKE ));
51
57
public static final RegistryObject <Block > IRON_TRAP = BLOCKS .register ("iron_trap" ,() -> new TrapBlock (Block .Properties .from (Blocks .IRON_BLOCK ).harvestTool (ToolType .PICKAXE ), TrapType .IRON ));
52
58
public static final RegistryObject <Block > GOLDERN_TRAP = BLOCKS .register ("gold_trap" ,() -> new TrapBlock (Block .Properties .from (Blocks .IRON_BLOCK ).harvestTool (ToolType .PICKAXE ), TrapType .GOLD ));
53
59
public static final RegistryObject <Block > DIAMOND_TRAP = BLOCKS .register ("diamond_trap" ,() -> new TrapBlock (Block .Properties .from (Blocks .IRON_BLOCK ).harvestTool (ToolType .PICKAXE ), TrapType .DIAMOND ));
54
60
public static final RegistryObject <Block > WITHER_TRAP = BLOCKS .register ("wither_trap" ,() -> new TrapBlock (Block .Properties .from (Blocks .IRON_BLOCK ).harvestTool (ToolType .PICKAXE ), TrapType .WITHER ));
55
61
56
62
//POI
57
-
58
63
public static final RegistryObject <Block > END_LANTERN = BLOCKS .register ("end_lantern" ,() -> new EndLantern (Block .Properties .from (Blocks .LANTERN )));
59
64
public static final RegistryObject <Block > SWORD_IN_STONE = BLOCKS .register ("sword_in_stone" ,() -> new DoubleHighBlock (Block .Properties .from (Blocks .STONE )));
60
65
public static final RegistryObject <Block > BEEKEEPER_BLOCK = BLOCKS .register ("beekeeper_block" ,() -> new BeekeeperBlock <Object >(Block .Properties .from (Blocks .BOOKSHELF ).lightValue (4 ).harvestTool (ToolType .AXE )));
61
66
public static final RegistryObject <Block > SEA_FISHERMAN_POI = BLOCKS .register ("sea_fisherman" ,() -> new DoubleHighBlock (Block .Properties .from (Blocks .IRON_BLOCK ).harvestTool (ToolType .PICKAXE )));
62
67
public static final RegistryObject <Block > SEA_TRADER_POI = BLOCKS .register ("sea_trader" ,() -> new DoubleHighBlock (Block .Properties .from (Blocks .OAK_LOG ).harvestTool (ToolType .AXE )));
63
68
64
- public static final RegistryObject <Block > AGG_BLOCK = BLOCKS .register ("agg_block" ,() -> new Block (Block .Properties .from (Blocks .GRAVEL )));
65
- public static final RegistryObject <Block > AGS_BLOCK = BLOCKS .register ("ags_block" ,() -> new AGSBlock (Block .Properties .from (Blocks .SAND )));
66
- public static final RegistryObject <Block > AGRS_BLOCK = BLOCKS .register ("agrs_block" ,() -> new AGSBlock (Block .Properties .from (Blocks .RED_SAND )));
69
+ //Blocks
70
+ public static final RegistryObject <Block > AGG_BLOCK = BLOCKS .register ("agg_block" ,() -> new AGBlock (Block .Properties .from (Blocks .GRAVEL )));
71
+ public static final RegistryObject <Block > AGS_BLOCK = BLOCKS .register ("ags_block" ,() -> new AGBlock (Block .Properties .from (Blocks .SAND )));
72
+ public static final RegistryObject <Block > AGRS_BLOCK = BLOCKS .register ("agrs_block" ,() -> new AGBlock (Block .Properties .from (Blocks .RED_SAND )));
67
73
public static final RegistryObject <Block > DARK_GLASS_BLOCK = BLOCKS .register ("dark_glass_block" ,() -> new DarkGlass ());
68
74
public static final RegistryObject <Block > SUPER_OBSIDIAN = BLOCKS .register ("super_obsidian" ,() -> new SuperObsidian ());
69
75
public static final RegistryObject <Block > SUPER_OBSIDIAN_BARS = BLOCKS .register ("super_obsidian_bars" ,() -> new SuperObsidian ());
@@ -73,38 +79,49 @@ public class BlockList {
73
79
public static final RegistryObject <Block > COBBLEGEN = BLOCKS .register ("cobblegen" ,() -> new CobbleGen (Block .Properties .from (Blocks .IRON_BLOCK ).lightValue (4 ).harvestTool (ToolType .PICKAXE )));
74
80
75
81
//Stairs
76
-
77
82
public static final RegistryObject <Block > GRAVEL_STAIRS = BLOCKS .register ("gravel_stairs" ,() -> new CustomStairsBlock (AGS_BLOCK .get ().getDefaultState (),Block .Properties .from (Blocks .GRAVEL ).harvestTool (ToolType .SHOVEL )));
78
83
public static final RegistryObject <Block > SAND_STAIRS = BLOCKS .register ("sand_stairs" ,() -> new CustomStairsBlock (AGS_BLOCK .get ().getDefaultState (),Block .Properties .from (Blocks .SAND ).harvestTool (ToolType .SHOVEL )));
79
84
public static final RegistryObject <Block > REDSAND_STAIRS = BLOCKS .register ("redsand_stairs" ,() -> new CustomStairsBlock (AGS_BLOCK .get ().getDefaultState (),Block .Properties .from (Blocks .RED_SAND ).harvestTool (ToolType .SHOVEL )));
80
85
public static final RegistryObject <Block > COARSEDIRT_STAIRS = BLOCKS .register ("coarsedirt_stairs" ,() -> new CustomStairsBlock (AGS_BLOCK .get ().getDefaultState (),Block .Properties .from (Blocks .DIRT ).harvestTool (ToolType .SHOVEL )));
81
86
public static final RegistryObject <Block > DIRT_STAIRS = BLOCKS .register ("dirt_stairs" ,() -> new CustomStairsBlock (AGS_BLOCK .get ().getDefaultState (),Block .Properties .from (Blocks .DIRT ).harvestTool (ToolType .SHOVEL )));
87
+ public static final RegistryObject <Block > CRACKED_STONE_STAIRS = BLOCKS .register ("cracked_stone_bricks_stairs" ,() -> new CustomStairsBlock (AGS_BLOCK .get ().getDefaultState (),Block .Properties .from (Blocks .STONE ).harvestTool (ToolType .PICKAXE )));
82
88
public static final RegistryObject <Block > BOOKSHELF_STAIRS = BLOCKS .register ("bookshelf_stairs" ,() -> new BookshelfStairsBlock (AGS_BLOCK .get ().getDefaultState (),Block .Properties .from (Blocks .BOOKSHELF ).harvestTool (ToolType .AXE )));
83
89
84
- //Slabs
90
+ public static final RegistryObject <Block > OAK_LEAVES_STAIRS = BLOCKS .register ("oak_leaves_stairs" ,() -> new LeafStairsBlock (AGS_BLOCK .get ().getDefaultState (),Block .Properties .from (Blocks .OAK_LEAVES )));
91
+ public static final RegistryObject <Block > DARK_OAK_LEAVES_STAIRS = BLOCKS .register ("dark_oak_leaves_stairs" ,() -> new LeafStairsBlock (AGS_BLOCK .get ().getDefaultState (),Block .Properties .from (Blocks .DARK_OAK_LEAVES )));
92
+ public static final RegistryObject <Block > JUNGLE_LEAVES_STAIRS = BLOCKS .register ("jungle_leaves_stairs" ,() -> new LeafStairsBlock (AGS_BLOCK .get ().getDefaultState (),Block .Properties .from (Blocks .JUNGLE_LEAVES )));
93
+ public static final RegistryObject <Block > ACACIA_LEAVES_STAIRS = BLOCKS .register ("acacia_leaves_stairs" ,() -> new LeafStairsBlock (AGS_BLOCK .get ().getDefaultState (),Block .Properties .from (Blocks .ACACIA_LEAVES )));
94
+ public static final RegistryObject <Block > SPRUCE_LEAVES_STAIRS = BLOCKS .register ("spruce_leaves_stairs" ,() -> new SpruceStairsBlock (AGS_BLOCK .get ().getDefaultState (),Block .Properties .from (Blocks .SPRUCE_LEAVES )));
95
+ public static final RegistryObject <Block > BIRCH_LEAVES_STAIRS = BLOCKS .register ("birch_leaves_stairs" ,() -> new BirchStairsBlock (AGS_BLOCK .get ().getDefaultState (),Block .Properties .from (Blocks .BIRCH_LEAVES )));
85
96
97
+ //Slabs
98
+ public static final RegistryObject <Block > GRASS_SLAB = BLOCKS .register ("grass_slab" ,() -> new GrassSlab (Block .Properties .from (Blocks .GRASS_BLOCK ).harvestTool (ToolType .SHOVEL )));
86
99
public static final RegistryObject <Block > GRAVEL_SLAB = BLOCKS .register ("gravel_slab" ,() -> new SlabBlock (Block .Properties .from (Blocks .GRAVEL ).harvestTool (ToolType .SHOVEL )));
87
100
public static final RegistryObject <Block > SAND_SLAB = BLOCKS .register ("sand_slab" ,() -> new SlabBlock (Block .Properties .from (Blocks .SAND ).harvestTool (ToolType .SHOVEL )));
88
101
public static final RegistryObject <Block > REDSAND_SLAB = BLOCKS .register ("redsand_slab" ,() -> new SlabBlock (Block .Properties .from (Blocks .RED_SAND ).harvestTool (ToolType .SHOVEL )));
89
102
public static final RegistryObject <Block > COARSEDIRT_SLAB = BLOCKS .register ("coarsedirt_slab" ,() -> new SlabBlock (Block .Properties .from (Blocks .DIRT ).harvestTool (ToolType .SHOVEL )));
90
- public static final RegistryObject <Block > DIRT_SLAB = BLOCKS .register ("dirt_slab" ,() -> new SlabBlock (Block .Properties .from (Blocks .DIRT ).harvestTool (ToolType .SHOVEL )));
91
- public static final RegistryObject <Block > BOOKSHELF_SLAB = BLOCKS .register ("bookshelf_slab" ,() -> new BookshelfSlabBlock (AGS_BLOCK .get ().getDefaultState (), Block .Properties .from (Blocks .BOOKSHELF ).harvestTool (ToolType .AXE )));
103
+ public static final RegistryObject <Block > DIRT_SLAB = BLOCKS .register ("dirt_slab" ,() -> new SlabBlock (Block .Properties .from (Blocks .DIRT ).harvestTool (ToolType .SHOVEL )));
104
+ public static final RegistryObject <Block > CRACKED_STONE_SLAB = BLOCKS .register ("cracked_stone_bricks_slab" ,() -> new SlabBlock (Block .Properties .from (Blocks .STONE ).harvestTool (ToolType .PICKAXE )));
105
+ public static final RegistryObject <Block > BOOKSHELF_SLAB = BLOCKS .register ("bookshelf_slab" ,() -> new BookshelfSlabBlock (Block .Properties .from (Blocks .BOOKSHELF ).harvestTool (ToolType .AXE )));
106
+
107
+ public static final RegistryObject <Block > OAK_LEAVES_SLAB = BLOCKS .register ("oak_leaves_slab" ,() -> new LeafSlab (Block .Properties .from (Blocks .OAK_LEAVES )));
108
+ public static final RegistryObject <Block > DARK_OAK_LEAVES_SLAB = BLOCKS .register ("dark_oak_leaves_slab" ,() -> new LeafSlab (Block .Properties .from (Blocks .DARK_OAK_LEAVES )));
109
+ public static final RegistryObject <Block > JUNGLE_LEAVES_SLAB = BLOCKS .register ("jungle_leaves_slab" ,() -> new LeafSlab (Block .Properties .from (Blocks .JUNGLE_LEAVES )));
110
+ public static final RegistryObject <Block > ACACIA_LEAVES_SLAB = BLOCKS .register ("acacia_leaves_slab" ,() -> new LeafSlab (Block .Properties .from (Blocks .ACACIA_LEAVES )));
111
+ public static final RegistryObject <Block > SPRUCE_LEAVES_SLAB = BLOCKS .register ("spruce_leaves_slab" ,() -> new SpruceSlab (Block .Properties .from (Blocks .SPRUCE_LEAVES )));
112
+ public static final RegistryObject <Block > BIRCH_LEAVES_SLAB = BLOCKS .register ("birch_leaves_slab" ,() -> new BirchSlab (Block .Properties .from (Blocks .BIRCH_LEAVES )));
92
113
93
114
//Chests
94
115
public static final RegistryObject <Block > BOOKSHELF_CHEST = BLOCKS .register ("bookshelf_chest" ,() -> new BookshelfChestBlock (Block .Properties .from (Blocks .BOOKSHELF ).hardnessAndResistance (2.5f , 600.0f ).harvestTool (ToolType .AXE )));
95
116
public static final RegistryObject <Block > SAFE_CHEST = BLOCKS .register ("safe_chest" ,() -> new SafeChestBlock (Block .Properties .from (Blocks .IRON_BLOCK ).hardnessAndResistance (2.5f , 600.0f ).harvestTool (ToolType .PICKAXE )));
96
117
97
118
//Golem
98
-
99
119
public static final RegistryObject <Block > RSG_HEAD = BLOCKS .register ("rsg_head" ,() -> new RedstoneGolemHead (Block .Properties .from (Blocks .STONE )));
100
-
101
120
102
121
//No Item Blocks Info
103
-
104
122
public static final DeferredRegister <Block > NO_ITEM_BLOCK = new DeferredRegister <>(ForgeRegistries .BLOCKS , NNOW .MOD_ID );
105
123
106
124
//Bushes
107
-
108
125
public static final RegistryObject <Block > IRONBERRY_BUSH = NO_ITEM_BLOCK .register ("iron_berry_bush" ,() -> new IronBerryBush (Block .Properties .from (Blocks .SWEET_BERRY_BUSH ).tickRandomly ()));
109
126
public static final RegistryObject <Block > GOLDBERRY_BUSH = NO_ITEM_BLOCK .register ("gold_berry_bush" ,() -> new GoldBerryBush (Block .Properties .from (Blocks .SWEET_BERRY_BUSH ).tickRandomly ()));
110
127
public static final RegistryObject <Block > COALBERRY_BUSH = NO_ITEM_BLOCK .register ("coal_berry_bush" ,() -> new CoalBerryBush (Block .Properties .from (Blocks .SWEET_BERRY_BUSH ).tickRandomly ()));
0 commit comments