11package gregtech .common .blocks ;
22
33import gregtech .api .block .IStateHarvestLevel ;
4+ import gregtech .api .block .IStateSoundType ;
45import gregtech .api .block .VariantBlock ;
56import gregtech .api .items .toolitem .ToolClasses ;
67
@@ -31,27 +32,33 @@ public boolean canCreatureSpawn(@NotNull IBlockState state, @NotNull IBlockAcces
3132 return false ;
3233 }
3334
34- public enum MetalCasingType implements IStringSerializable , IStateHarvestLevel {
35+ public enum MetalCasingType implements IStringSerializable , IStateHarvestLevel , IStateSoundType {
3536
3637 BRONZE_BRICKS ("bronze_bricks" , 1 ),
37- PRIMITIVE_BRICKS ("primitive_bricks" , 1 ),
38+ PRIMITIVE_BRICKS ("primitive_bricks" , 1 , SoundType . STONE ),
3839 INVAR_HEATPROOF ("invar_heatproof" , 1 ),
3940 ALUMINIUM_FROSTPROOF ("aluminium_frostproof" , 1 ),
4041 STEEL_SOLID ("steel_solid" , 2 ),
4142 STAINLESS_CLEAN ("stainless_clean" , 2 ),
4243 TITANIUM_STABLE ("titanium_stable" , 2 ),
4344 TUNGSTENSTEEL_ROBUST ("tungstensteel_robust" , 3 ),
44- COKE_BRICKS ("coke_bricks" , 1 ),
45+ COKE_BRICKS ("coke_bricks" , 1 , SoundType . STONE ),
4546 PTFE_INERT_CASING ("ptfe_inert" , 0 ),
4647 HSSE_STURDY ("hsse_sturdy" , 3 ),
4748 PALLADIUM_SUBSTATION ("palladium_substation" , 3 );
4849
4950 private final String name ;
5051 private final int harvestLevel ;
52+ private final SoundType soundType ;
5153
52- MetalCasingType (String name , int harvestLevel ) {
54+ MetalCasingType (String name , int harvestLevel , SoundType soundType ) {
5355 this .name = name ;
5456 this .harvestLevel = harvestLevel ;
57+ this .soundType = soundType ;
58+ }
59+
60+ MetalCasingType (String name , int harvestLevel ) {
61+ this (name , harvestLevel , SoundType .METAL );
5562 }
5663
5764 @ NotNull
@@ -69,5 +76,11 @@ public int getHarvestLevel(IBlockState state) {
6976 public String getHarvestTool (IBlockState state ) {
7077 return ToolClasses .WRENCH ;
7178 }
79+
80+ @ NotNull
81+ @ Override
82+ public SoundType getSoundType (@ NotNull IBlockState state ) {
83+ return soundType ;
84+ }
7285 }
7386}
0 commit comments