11package cc .cassian .pyrite ;
22
33import cc .cassian .pyrite .functions .ModHelpers ;
4+ import cc .cassian .pyrite .functions .ModLists ;
45import net .minecraft .block .*;
56import net .minecraft .particle .DustParticleEffect ;
67import net .minecraft .particle .ParticleTypes ;
1213import static cc .cassian .pyrite .functions .ModHelpers .*;
1314
1415public class Pyrite {
15- public final static String MOD_ID = "pyrite" ;
16+ public static final String MOD_ID = "pyrite" ;
1617 public static final Logger LOGGER = LogManager .getLogger (MOD_ID );
1718
18-
19- public static void init () {
19+ public static void init () {
20+ ModLists . populateLinkedHashMaps ();
2021 // Framed Glass
2122 createPyriteBlock ("framed_glass" ,"glass" , 2.0f , MapColor .CLEAR , 0 );
2223 // Framed Glass Pane
@@ -25,7 +26,8 @@ public static void init() {
2526 createPyriteBlock ("switchable_glass" , "switchable_glass" , Blocks .GLASS );
2627 // Cobblestone Bricks
2728 generateBrickSet ("cobblestone_brick" , Blocks .COBBLESTONE , MapColor .STONE_GRAY , true );
28- // Smooth Stone Bricks
29+ // Smooth Stone Set
30+ createPyriteBlock ("smooth_stone_stairs" , "stairs" , Blocks .SMOOTH_STONE );
2931 generateBrickSet ("smooth_stone_brick" , Blocks .SMOOTH_STONE , MapColor .STONE_GRAY , true );
3032 // Granite Bricks
3133 generateBrickSet ("granite_brick" , Blocks .GRANITE , MapColor .DIRT_BROWN , true );
@@ -35,10 +37,13 @@ public static void init() {
3537 generateBrickSet ("diorite_brick" , Blocks .DIORITE , MapColor .OFF_WHITE , true );
3638 // Calcite Bricks
3739 generateBrickSet ("calcite_brick" , Blocks .CALCITE , MapColor .OFF_WHITE , true );
40+ // Mossy Tuff Bricks
3841 // Mossy Deepslate Bricks
39- generateBrickSet ("mossy_deepslate_brick" , Blocks .DEEPSLATE_BRICKS , MapColor . BLACK );
42+ generateBrickSet ("mossy_deepslate_brick" , Blocks .DEEPSLATE_BRICKS );
4043 // Sandstone Bricks
41- generateBrickSet ("sandstone_brick" , Blocks .SANDSTONE , MapColor .PALE_YELLOW );
44+ generateBrickSet ("sandstone_brick" , Blocks .SANDSTONE );
45+ // Terracotta Bricks
46+ generateBrickSet ("terracotta_brick" , Blocks .TERRACOTTA );
4247 // Grass Set
4348 generateTurfSets ();
4449 // Nether Brick Fence Gate
@@ -48,10 +53,10 @@ public static void init() {
4853 // Torch Levers
4954 createTorchLever ("torch_lever" , Blocks .TORCH , ParticleTypes .FLAME );
5055 createTorchLever ("redstone_torch_lever" , Blocks .SOUL_TORCH , DustParticleEffect .DEFAULT );
51- createTorchLever ("soul_torch_lever" , Blocks .TORCH , ParticleTypes .SOUL_FIRE_FLAME );
56+ createTorchLever ("soul_torch_lever" , Blocks .SOUL_TORCH , ParticleTypes .SOUL_FIRE_FLAME );
5257 // Lamps
53- createPyriteBlock ("lit_redstone_lamp" , "block " , Blocks .REDSTONE_LAMP , 15 );
54- createPyriteBlock ("glowstone_lamp" ,"block " , 0.3f , MapColor .YELLOW , 15 );
58+ createPyriteBlock ("lit_redstone_lamp" , "lamp " , Blocks .REDSTONE_LAMP , 15 );
59+ createPyriteBlock ("glowstone_lamp" ,"lamp " , 0.3f , MapColor .YELLOW , 15 );
5560 // Classic Features
5661 createPyriteBlock ("glowing_obsidian" ,"obsidian" , 50f , MapColor .RED , 15 );
5762 createPyriteBlock ("nostalgia_glowing_obsidian" ,"obsidian" , 50f , MapColor .RED , 15 );
@@ -68,21 +73,19 @@ public static void init() {
6873 // Modded Crafting Tables
6974 if (ModHelpers .isModLoaded ("aether" )) {
7075 createPyriteBlock ("skyroot_crafting_table" ,"crafting" , Blocks .CRAFTING_TABLE );
71- createPyriteBlock ( "holystone_wall_gate" ,"fence_gate" , Blocks .STONE );
72- createPyriteBlock ( "mossy_holystone_wall_gate" ,"fence_gate" , Blocks .STONE );
73- createPyriteBlock ( "holystone_brick_wall_gate" ,"fence_gate" , Blocks .STONE );
74- createPyriteBlock ( "icestone_wall_gate" ,"fence_gate" , Blocks .STONE );
75- createPyriteBlock ( "aerogel_wall_gate" ,"fence_gate" , Blocks .STONE );
76- createPyriteBlock ( "carved_wall_gate" ,"fence_gate" , Blocks .STONE );
77- createPyriteBlock ( "angelic_wall_gate" ,"fence_gate" , Blocks .STONE );
78- createPyriteBlock ( "hellfire_wall_gate" ,"fence_gate" , Blocks .STONE );
79-
80-
76+ createPyriteBlock ( "holystone_wall_gate" ,"wall_gate" , Blocks .STONE , BlockSetType .STONE );
77+ createPyriteBlock ( "mossy_holystone_wall_gate" ,"wall_gate" , Blocks .STONE , BlockSetType .STONE );
78+ createPyriteBlock ( "holystone_brick_wall_gate" ,"wall_gate" , Blocks .STONE , BlockSetType .STONE );
79+ createPyriteBlock ( "icestone_wall_gate" ,"wall_gate" , Blocks .STONE , BlockSetType .STONE );
80+ createPyriteBlock ( "aerogel_wall_gate" ,"wall_gate" , Blocks .STONE , BlockSetType .STONE );
81+ createPyriteBlock ( "carved_wall_gate" ,"wall_gate" , Blocks .STONE , BlockSetType .STONE );
82+ createPyriteBlock ( "angelic_wall_gate" ,"wall_gate" , Blocks .STONE , BlockSetType .STONE );
83+ createPyriteBlock ( "hellfire_wall_gate" ,"wall_gate" , Blocks .STONE , BlockSetType .STONE );
8184 }
82- // Red Mushroom Blocks
85+ // Red Mushroom Wood Set
8386 createPyriteBlock ("red_mushroom_stem" , "log" , Blocks .MUSHROOM_STEM );
8487 createWoodSet ("red_mushroom" , MapColor .RED , 0 );
85- // Brown Mushroom Blocks
88+ // Brown Mushroom Wood Set
8689 createPyriteBlock ("brown_mushroom_stem" , "log" , Blocks .MUSHROOM_STEM );
8790 createWoodSet ("brown_mushroom" , MapColor .BROWN , 0 );
8891 // Azalea Wood Set
@@ -106,9 +109,9 @@ public static void init() {
106109 createPyriteBlock (dye +"_concrete_powder" , "concrete_powder" , Blocks .WHITE_CONCRETE_POWDER , color , blockLux );
107110 }
108111 // Dyed Concrete Stairs
109- createPyriteBlock ( dye +"_concrete_stairs" , "stairs" , Blocks .WHITE_CONCRETE , color , blockLux );
112+ createPyriteBlock (dye +"_concrete_stairs" , "stairs" , Blocks .WHITE_CONCRETE , color , blockLux );
110113 // Dyed Concrete Slab
111- createPyriteBlock ( dye +"_concrete_slab" , "slab" , Blocks .WHITE_CONCRETE , color , blockLux );
114+ createPyriteBlock (dye +"_concrete_slab" , "slab" , Blocks .WHITE_CONCRETE , color , blockLux );
112115 //Dyed Planks and plank products
113116 createWoodSet (dye + "_stained" , color , blockLux );
114117 // Dyed Bricks and brick products
@@ -123,18 +126,20 @@ public static void init() {
123126 generateBrickSet (dye +"_terracotta_brick" , Blocks .TERRACOTTA , color , blockLux );
124127 // Dyed Torches
125128 createTorch (dye +"_torch" , getTorchParticle (dye ));
129+ if (dyeIndex > 15 ) {
130+ // Dyed Stained Glass
131+ createPyriteBlock (dye +"_stained_glass" ,"stained_framed_glass" , 0.3f , color , blockLux );
132+ // Dyed Stained Glass Pane
133+ createPyriteBlock (dye +"_stained_glass_pane" ,"stained_framed_glass_pane" , 0.3f , color , blockLux );
134+ }
126135 // Dyed Lamps
127- createPyriteBlock (dye + "_lamp" ,"block " , 0.3f , color , 15 );
136+ createPyriteBlock (dye + "_lamp" ,"lamp " , 0.3f , color , 15 );
128137 // Dyed Framed Glass
129138 createPyriteBlock (dye +"_framed_glass" ,"stained_framed_glass" , 2.0f , color , blockLux );
130139 // Dyed Framed Glass Pane
131140 createPyriteBlock ( dye +"_framed_glass_pane" ,"stained_framed_glass_pane" , 2.0f , color , blockLux );
132141 // Dyed Torch Levers
133142 createTorchLever (dye +"_torch_lever" , Blocks .TORCH , getTorchParticle (dye ));
134-
135-
136-
137-
138143 }
139144 // Autogenerate Wall Gates
140145 for (Block wallsBlock : getVanillaWalls ()) {
@@ -145,11 +150,7 @@ public static void init() {
145150 block = block + "_wall" ;
146151 }
147152 //Create block.
148- createPyriteBlock (block + "_gate" ,"fence_gate " , wallsBlock );
153+ createPyriteBlock (block + "_gate" ,"wall_gate " , wallsBlock , BlockSetType . STONE );
149154 }
150155 }
151-
152-
153-
154-
155156}
0 commit comments