From 81a62eb7e2a89e0010f2556f43ea2ece3abe87a0 Mon Sep 17 00:00:00 2001 From: StarSNG25 Date: Tue, 27 Feb 2024 18:47:02 +0700 Subject: [PATCH] Updated variable names to follow 1.20.4 --- .../sng_arsenal/item/armor/ModArmorMaterials.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/starsng/sng_arsenal/item/armor/ModArmorMaterials.java b/src/main/java/com/starsng/sng_arsenal/item/armor/ModArmorMaterials.java index 40bec2d..2755f55 100644 --- a/src/main/java/com/starsng/sng_arsenal/item/armor/ModArmorMaterials.java +++ b/src/main/java/com/starsng/sng_arsenal/item/armor/ModArmorMaterials.java @@ -31,7 +31,7 @@ public enum ModArmorMaterials implements ArmorMaterial return Ingredient.of(ModItems.CONDENSED_SNG_INGOT.get()); }); - private static final EnumMap HEALTH_PER_SLOT = Util.make(new EnumMap<>(ArmorItem.Type.class), (armor) -> { + private static final EnumMap HEALTH_FUNCTION_FOR_TYPE = Util.make(new EnumMap<>(ArmorItem.Type.class), (armor) -> { armor.put(ArmorItem.Type.BOOTS, 13); armor.put(ArmorItem.Type.LEGGINGS, 15); armor.put(ArmorItem.Type.CHESTPLATE, 16); @@ -39,18 +39,18 @@ public enum ModArmorMaterials implements ArmorMaterial }); private final String name; private final int durabilityMultiplier; - private final EnumMap slotProtections; + private final EnumMap protectionFunctionForType; private final int enchantmentValue; private final SoundEvent sound; private final float toughness; private final float knockbackResistance; private final Supplier repairIngredient; - private ModArmorMaterials(String name, int durabilityMultiplier, EnumMap slotProtections, int enchantmentValue, SoundEvent sound, float toughness, float knockbackResistance, Supplier repairIngredient) + private ModArmorMaterials(String name, int durabilityMultiplier, EnumMap protectionFunctionForType, int enchantmentValue, SoundEvent sound, float toughness, float knockbackResistance, Supplier repairIngredient) { this.name = name; this.durabilityMultiplier = durabilityMultiplier; - this.slotProtections = slotProtections; + this.protectionFunctionForType = protectionFunctionForType; this.enchantmentValue = enchantmentValue; this.sound = sound; this.toughness = toughness; @@ -61,13 +61,13 @@ private ModArmorMaterials(String name, int durabilityMultiplier, EnumMap