@@ -31,16 +31,7 @@ public ModBlockStateProvider(PackOutput output, ExistingFileHelper exFileHelper)
31
31
Helpers .location ("block/brittle_ice_0" ),
32
32
Helpers .location ("block/brittle_ice_1" ),
33
33
Helpers .location ("block/brittle_ice_2" ),
34
- Helpers .location ("block/brittle_ice_3" )
35
- };
36
- public static final ResourceLocation [] WOOD = new ResourceLocation [] {
37
- Helpers .location ("block/wood" )
38
- };
39
- public static final ResourceLocation [] CONCRETE = new ResourceLocation [] {
40
- Helpers .location ("block/concrete" )
41
- };
42
- public static final ResourceLocation [] GLAZED_TERRACOTTA = new ResourceLocation [] {
43
- Helpers .location ("block/glazed_terracotta" )
34
+ Helpers .location ("block/brittle_ice_3" ),
44
35
};
45
36
46
37
@ Override
@@ -81,21 +72,12 @@ protected void registerStatesAndModels() {
81
72
}
82
73
83
74
// Logs
84
- simpleBlock (ModBlocks .PALM_CROWN .get (), models ().cubeAll ("palm_crown" , Helpers .location ("block/palm_crown" )));
85
- simpleBlock (ModBlocks .PALM_LEAVES .get (), models ().cubeAll ("palm_leaves" , Helpers .location ("block/palm_leaves" )).renderType ("cutout_mipped" ));
86
- simpleBlock (ModBlocks .BAOBAB_LEAVES .get (), models ().cubeAll ("baobab_leaves" , Helpers .location ("block/baobab_leaves" )).renderType ("cutout_mipped" ));
87
75
simpleBlock (ModBlocks .PALM_SAPLING .get (), models ().cross ("palm_sapling" , Helpers .location ("block/palm_sapling" )).renderType ("cutout" ));
88
76
simpleBlock (ModBlocks .BAOBAB_SAPLING .get (), models ().cross ("baobab_sapling" , Helpers .location ("block/baobab_sapling" )).renderType ("cutout" ));
89
77
90
- // Wool
91
- simpleBlock (ModBlocks .WOOL .get (), models ().cubeAll ("wool" , Helpers .location ("block/wool" )));
92
-
93
78
// Carpet
94
79
simpleBlock (ModBlocks .CARPET .get (), models ().carpet ("carpet" , Helpers .location ("block/wool" )));
95
80
96
- // Concrete
97
- simpleBlock (ModBlocks .CONCRETE .get (), models ().cubeAll ("concrete" , Helpers .location ("block/concrete" )));
98
-
99
81
// Glazed Terracotta
100
82
VariantBlockStateBuilder glazedTerracottaStates = getVariantBuilder (ModBlocks .GLAZED_TERRACOTTA .get ());
101
83
for (Direction facing : Direction .Plane .HORIZONTAL ) {
@@ -136,39 +118,4 @@ private void brittleIceModel(VariantBlockStateBuilder brittleIceStates, int age,
136
118
new ConfiguredModel (models ().getExistingFile (BRITTLE_ICES [age ]))
137
119
);
138
120
}
139
-
140
- private void logModel (VariantBlockStateBuilder woodStates , String name ) {
141
- ResourceLocation side = Helpers .location ("block/" + name + "_log" );
142
- ResourceLocation top = Helpers .location ("block/" + name + "_log_top" );
143
- woodStates .addModels (
144
- woodStates .partialState ().with (BlockStateProperties .AXIS , Direction .Axis .Y ),
145
- new ConfiguredModel (models ().cubeColumn (name + "_log" , side , top ))
146
- );
147
- BlockModelBuilder azaleaLogHorizontal = models ().cubeColumnHorizontal (name + "_log_horizontal" , side , top );
148
- woodStates .addModels (
149
- woodStates .partialState ().with (BlockStateProperties .AXIS , Direction .Axis .X ),
150
- new ConfiguredModel (azaleaLogHorizontal , 90 , 90 , false )
151
- );
152
- woodStates .addModels (
153
- woodStates .partialState ().with (BlockStateProperties .AXIS , Direction .Axis .Z ),
154
- new ConfiguredModel (azaleaLogHorizontal , 90 , 0 , false )
155
- );
156
- }
157
-
158
- private void woodModel (VariantBlockStateBuilder woodStates , String name ) {
159
- ResourceLocation side = Helpers .location ("block/" + name + "_log" );
160
- woodStates .addModels (
161
- woodStates .partialState ().with (BlockStateProperties .AXIS , Direction .Axis .Y ),
162
- new ConfiguredModel (models ().cubeColumn (name + "_wood" , side , side ))
163
- );
164
- BlockModelBuilder azaleaLogHorizontal = models ().cubeColumnHorizontal (name + "_wood_horizontal" , side , side );
165
- woodStates .addModels (
166
- woodStates .partialState ().with (BlockStateProperties .AXIS , Direction .Axis .X ),
167
- new ConfiguredModel (azaleaLogHorizontal , 90 , 90 , false )
168
- );
169
- woodStates .addModels (
170
- woodStates .partialState ().with (BlockStateProperties .AXIS , Direction .Axis .Z ),
171
- new ConfiguredModel (azaleaLogHorizontal , 90 , 0 , false )
172
- );
173
- }
174
121
}
0 commit comments