14
14
import java .util .List ;
15
15
import java .util .function .Supplier ;
16
16
17
- @ SuppressWarnings ("ALL " )
17
+ @ SuppressWarnings ("CodeBlock2Expr " )
18
18
public enum MythicArmorMaterials implements ArmorMaterial {
19
19
ADAMANTITE ("adamantite" , 30 , new int []{3 , 6 , 8 , 3 }, 16 , SoundEvents .ITEM_ARMOR_EQUIP_NETHERITE , 2.0F , 0.0F , () -> {
20
20
return Ingredient .ofItems (MythicItems .Ingots .ADAMANTITE_INGOT );
@@ -97,7 +97,7 @@ public enum MythicArmorMaterials implements ArmorMaterial {
97
97
private final float knockbackResistance ;
98
98
private final Supplier <Ingredient > repairIngredientSupplier ;
99
99
100
- private MythicArmorMaterials (String name , int durabilityMultiplier , int [] protectionAmounts , int enchantability , SoundEvent equipSound , float toughness , float knockbackResistance , Supplier <Ingredient > repairIngredientSupplier ) {
100
+ MythicArmorMaterials (String name , int durabilityMultiplier , int [] protectionAmounts , int enchantability , SoundEvent equipSound , float toughness , float knockbackResistance , Supplier <Ingredient > repairIngredientSupplier ) {
101
101
this .name = name ;
102
102
this .durabilityMultiplier = durabilityMultiplier ;
103
103
this .protectionAmounts = protectionAmounts ;
@@ -125,7 +125,7 @@ public SoundEvent getEquipSound() {
125
125
}
126
126
127
127
public Ingredient getRepairIngredient () {
128
- return ( Ingredient ) this .repairIngredientSupplier .get ();
128
+ return this .repairIngredientSupplier .get ();
129
129
}
130
130
131
131
public String getName () {
@@ -140,8 +140,7 @@ public float getKnockbackResistance() {
140
140
return this .knockbackResistance ;
141
141
}
142
142
143
- public static final List KNOCKBACKABLE_ARMOR_MATERIALS = Arrays .asList (new ArmorMaterial []{
144
- ORICHALCUM , OSMIUM , METALLURGIUM
145
- });
143
+ @ SuppressWarnings ("rawtypes" )
144
+ public static final List KNOCKBACKABLE_ARMOR_MATERIALS = Arrays .asList (ORICHALCUM , OSMIUM , METALLURGIUM );
146
145
147
146
}
0 commit comments