20
20
21
21
import org .polaris2023 .annotation .modelgen .item .BasicBlockItem ;
22
22
import org .polaris2023 .annotation .modelgen .item .BasicItem ;
23
- import org .polaris2023 .wild_wind .common .block .* ;
23
+ import org .polaris2023 .wild_wind .common .block .BrittleIceBlock ;
24
24
25
+ import org .polaris2023 .wild_wind .common .block .CookingPotBlock ;
26
+ import org .polaris2023 .wild_wind .common .block .GlowMucusBlock ;
25
27
import org .polaris2023 .wild_wind .common .block .entity .CookingPotBlockEntity ;
26
- import org .polaris2023 .wild_wind .common .block .entity .DuckweedBlockEntity ;
27
- import org .polaris2023 .wild_wind .common .block .entity .WoolBlockEntity ;
28
- import org .polaris2023 .wild_wind .common .block .item .WoolBlockItem ;
29
28
30
29
import java .util .Arrays ;
31
30
@@ -92,42 +91,22 @@ public class ModBlocks {
92
91
public static final DeferredItem <BlockItem > COOKING_POT_ITEM =
93
92
register ("cooking_pot" , COOKING_POT );
94
93
95
- @ I18n (en_us = "Duckweed" , zh_cn = "浮萍" , zh_tw = "浮萍" )
96
- public static final DeferredBlock <DuckweedBlock > DUCKWEED =
97
- register ("duckweed" , DuckweedBlock ::new , BlockBehaviour .Properties .of ());
98
- public static final DeferredHolder <BlockEntityType <?>, BlockEntityType <DuckweedBlockEntity >> DUCKWEED_TILE =
99
- entity ("duckweed" , DSL .remainderType (), DuckweedBlockEntity ::new , DUCKWEED );
100
- public static final DeferredItem <BlockItem > DUCKWEED_ITEM =
101
- register ("duckweed" , DUCKWEED );
102
-
103
- @ I18n (en_us = "Sculk Jaw" , zh_cn = "幽匿厄口" , zh_tw = "幽匿厄口" )
104
- public static final DeferredBlock <SculkJawBlock > SCULK_JAW =
105
- register ("sculk_jaw" , SculkJawBlock ::new , BlockBehaviour .Properties .of ());
106
- public static final DeferredItem <BlockItem > SCULK_JAW_ITEM =
107
- register ("sculk_jaw" , SCULK_JAW );
108
-
109
-
110
94
@ I18n (en_us = "Brittle Ice" , zh_cn = "脆冰" , zh_tw = "脆冰" )
111
95
public static final DeferredBlock <BrittleIceBlock > BRITTLE_ICE =
112
96
register ("brittle_ice" , BrittleIceBlock ::new , BlockBehaviour .Properties .ofFullCopy (Blocks .ICE )
113
97
.strength (0.1F ).isValidSpawn (Blocks ::never ).pushReaction (PushReaction .DESTROY ));
114
98
@ BasicBlockItem
115
99
public static final DeferredItem <BlockItem > BRITTLE_ICE_ITEM =
116
100
register ("brittle_ice" , BRITTLE_ICE );
117
-
101
+
118
102
@ I18n (en_us = "wool" , zh_cn = "羊毛" , zh_tw = "羊毛" )
119
- public static final DeferredBlock <WoolBlock > WOOL = register ("wool" , WoolBlock ::new , BlockBehaviour .Properties .of ()
120
-
103
+ public static final DeferredBlock <Block > WOOL = register ("wool" , BlockBehaviour .Properties .of ()
121
104
.instrument (NoteBlockInstrument .GUITAR )
122
105
.strength (0.8F )
123
106
.sound (SoundType .WOOL )
124
107
.ignitedByLava ());
125
- public static final DeferredHolder <BlockEntityType <?>, BlockEntityType <WoolBlockEntity >> WOOL_TILE =
126
- entity ("wool" , DSL .remainderType (), WoolBlockEntity ::new , WOOL );
127
108
@ BasicBlockItem
128
- public static final DeferredItem <BlockItem > WOOL_ITEM =
129
- register ("wool" , p -> new WoolBlockItem (WOOL .get (), p ));
130
- // register("wood", WOOL);
109
+ public static final DeferredItem <BlockItem > WOOL_ITEM = register ("wool" , WOOL );
131
110
132
111
@ I18n (en_us = "carpet" , zh_cn = "地毯" , zh_tw = "地毯" )
133
112
public static final DeferredBlock <CarpetBlock > CARPET =
@@ -178,7 +157,7 @@ public class ModBlocks {
178
157
179
158
@ BasicBlockItem
180
159
public static final DeferredItem <BlockItem > DEEPSLATE_SALT_ORE_ITEM =
181
- register ("deepslate_salt_ore" , DEEPSLATE_SALT_ORE );
160
+ register ("deepslate_salt_ore" , SALT_ORE );
182
161
183
162
@ I18n (en_us = "Azalea Log" , zh_cn = "杜鹃木原木" , zh_tw = "杜鵑木原木" )
184
163
public static final DeferredBlock <RotatedPillarBlock > AZALEA_LOG =
@@ -196,6 +175,30 @@ public class ModBlocks {
196
175
@ I18n (en_us = "Azalea Planks" , zh_cn = "杜鹃木木板" , zh_tw = "杜鵑木材" )
197
176
public static final DeferredBlock <Block > AZALEA_PLANKS =
198
177
register ("azalea_planks" , Block ::new , BlockBehaviour .Properties .ofFullCopy (Blocks .MANGROVE_PLANKS ));
178
+ @ I18n (en_us = "Azalea Button" , zh_cn = "杜鹃木按钮" , zh_tw = "杜鵑木按鈕" )
179
+ public static final DeferredBlock <ButtonBlock > AZALEA_BUTTON =
180
+ register ("azalea_button" , props -> new ButtonBlock (ModBlockSetTypes .AZALEA , 30 , props ), BlockBehaviour .Properties .ofFullCopy (Blocks .MANGROVE_BUTTON ));
181
+ @ I18n (en_us = "Azalea Fence" , zh_cn = "杜鹃木栅栏" , zh_tw = "杜鵑木柵欄" )
182
+ public static final DeferredBlock <FenceBlock > AZALEA_FENCE =
183
+ register ("azalea_fence" , FenceBlock ::new , BlockBehaviour .Properties .ofFullCopy (Blocks .MANGROVE_FENCE ));
184
+ @ I18n (en_us = "Azalea Fence Gate" , zh_cn = "杜鹃木栅栏门" , zh_tw = "杜鵑木柵欄門" )
185
+ public static final DeferredBlock <FenceGateBlock > AZALEA_FENCE_GATE =
186
+ register ("azalea_fence_gate" , props -> new FenceGateBlock (ModWoodTypes .AZALEA , props ), BlockBehaviour .Properties .ofFullCopy (Blocks .MANGROVE_FENCE_GATE ));
187
+ @ I18n (en_us = "Azalea Pressure Plate" , zh_cn = "杜鹃木压力板" , zh_tw = "杜鵑木压力板" )
188
+ public static final DeferredBlock <PressurePlateBlock > AZALEA_PRESSURE_PLATE =
189
+ register ("azalea_pressure_plate" , props -> new PressurePlateBlock (ModBlockSetTypes .AZALEA , props ), BlockBehaviour .Properties .ofFullCopy (Blocks .MANGROVE_PRESSURE_PLATE ));
190
+ @ I18n (en_us = "Azalea Slab" , zh_cn = "杜鹃木台阶" , zh_tw = "杜鵑木半磚" )
191
+ public static final DeferredBlock <SlabBlock > AZALEA_SLAB =
192
+ register ("azalea_slab" , SlabBlock ::new , BlockBehaviour .Properties .ofFullCopy (Blocks .MANGROVE_SLAB ));
193
+ @ I18n (en_us = "Azalea Stairs" , zh_cn = "杜鹃木楼梯" , zh_tw = "杜鵑木樓梯" )
194
+ public static final DeferredBlock <StairBlock > AZALEA_STAIRS =
195
+ register ("azalea_stairs" , props -> new StairBlock (AZALEA_PLANKS .get ().defaultBlockState (), props ), BlockBehaviour .Properties .ofFullCopy (Blocks .MANGROVE_STAIRS ));
196
+ @ I18n (en_us = "Azalea Door" , zh_cn = "杜鹃木门" , zh_tw = "杜鵑木門" )
197
+ public static final DeferredBlock <DoorBlock > AZALEA_DOOR =
198
+ register ("azalea_door" , props -> new DoorBlock (ModBlockSetTypes .AZALEA , props ), BlockBehaviour .Properties .ofFullCopy (Blocks .MANGROVE_DOOR ));
199
+ @ I18n (en_us = "Azalea Door" , zh_cn = "杜鹃木活板门" , zh_tw = "杜鵑木地板門" )
200
+ public static final DeferredBlock <TrapDoorBlock > AZALEA_TRAPDOOR =
201
+ register ("azalea_trapdoor" , props -> new TrapDoorBlock (ModBlockSetTypes .AZALEA , props ), BlockBehaviour .Properties .ofFullCopy (Blocks .MANGROVE_TRAPDOOR ));
199
202
@ I18n (en_us = "Azalea Sign" , zh_cn = "杜鹃木告示牌" , zh_tw = "杜鵑木告示牌" )
200
203
public static final DeferredBlock <StandingSignBlock > AZALEA_SIGN =
201
204
register ("azalea_sign" , props -> new StandingSignBlock (ModWoodTypes .AZALEA , props ), BlockBehaviour .Properties .ofFullCopy (Blocks .MANGROVE_SIGN ));
@@ -225,6 +228,30 @@ public class ModBlocks {
225
228
public static final DeferredItem <BlockItem > AZALEA_PLANKS_ITEM =
226
229
register ("azalea_planks" , AZALEA_PLANKS );
227
230
@ BasicBlockItem
231
+ public static final DeferredItem <BlockItem > AZALEA_BUTTON_ITEM =
232
+ register ("azalea_button" , AZALEA_BUTTON );
233
+ @ BasicBlockItem
234
+ public static final DeferredItem <BlockItem > AZALEA_FENCE_ITEM =
235
+ register ("azalea_fence" , AZALEA_FENCE );
236
+ @ BasicBlockItem
237
+ public static final DeferredItem <BlockItem > AZALEA_FENCE_GATE_ITEM =
238
+ register ("azalea_fence_gate" , AZALEA_FENCE_GATE );
239
+ @ BasicBlockItem
240
+ public static final DeferredItem <BlockItem > AZALEA_PRESSURE_PLATE_ITEM =
241
+ register ("azalea_pressure_plate" , AZALEA_PRESSURE_PLATE );
242
+ @ BasicBlockItem
243
+ public static final DeferredItem <BlockItem > AZALEA_SLAB_ITEM =
244
+ register ("azalea_slab" , AZALEA_SLAB );
245
+ @ BasicBlockItem
246
+ public static final DeferredItem <BlockItem > AZALEA_STAIRS_ITEM =
247
+ register ("azalea_stairs" , AZALEA_STAIRS );
248
+ @ BasicBlockItem
249
+ public static final DeferredItem <BlockItem > AZALEA_DOOR_ITEM =
250
+ register ("azalea_door" , AZALEA_DOOR );
251
+ @ BasicBlockItem
252
+ public static final DeferredItem <BlockItem > AZALEA_TRAPDOOR_ITEM =
253
+ register ("azalea_trapdoor" , AZALEA_TRAPDOOR );
254
+ @ BasicBlockItem
228
255
public static final DeferredItem <SignItem > AZALEA_SIGN_ITEM =
229
256
registerSign ("azalea_sign" , AZALEA_SIGN , AZALEA_WALL_SIGN );
230
257
@ BasicBlockItem
0 commit comments