Class ArmorMaterial

java.lang.Object
de.teamlapen.werewolves.util.ArmorMaterial
All Implemented Interfaces:
net.minecraft.world.item.ArmorMaterial
Direct Known Subclasses:
ArmorMaterial.Tiered

public class ArmorMaterial extends Object implements net.minecraft.world.item.ArmorMaterial
  • Constructor Details

    • ArmorMaterial

      public ArmorMaterial(String name, int maxDamageFactor, EnumMap<net.minecraft.world.item.ArmorItem.Type,Integer> damageReduction, int enchantability, net.minecraft.sounds.SoundEvent soundEvent, float toughness, float knockbackResistance, Supplier<net.minecraft.world.item.crafting.Ingredient> repairMaterial)
  • Method Details

    • getDurabilityForType

      public int getDurabilityForType(@NotNull net.minecraft.world.item.ArmorItem.Type type)
      Specified by:
      getDurabilityForType in interface net.minecraft.world.item.ArmorMaterial
    • getDefenseForType

      public int getDefenseForType(@NotNull net.minecraft.world.item.ArmorItem.Type type)
      Specified by:
      getDefenseForType in interface net.minecraft.world.item.ArmorMaterial
    • getEnchantmentValue

      public int getEnchantmentValue()
      Specified by:
      getEnchantmentValue in interface net.minecraft.world.item.ArmorMaterial
    • getEquipSound

      @Nonnull public net.minecraft.sounds.SoundEvent getEquipSound()
      Specified by:
      getEquipSound in interface net.minecraft.world.item.ArmorMaterial
    • getRepairIngredient

      @Nonnull public net.minecraft.world.item.crafting.Ingredient getRepairIngredient()
      Specified by:
      getRepairIngredient in interface net.minecraft.world.item.ArmorMaterial
    • getName

      @Nonnull public String getName()
      Specified by:
      getName in interface net.minecraft.world.item.ArmorMaterial
    • getToughness

      public float getToughness()
      Specified by:
      getToughness in interface net.minecraft.world.item.ArmorMaterial
    • getKnockbackResistance

      public float getKnockbackResistance()
      Specified by:
      getKnockbackResistance in interface net.minecraft.world.item.ArmorMaterial
    • createReduction

      public static EnumMap<net.minecraft.world.item.ArmorItem.Type,Integer> createReduction(int helmet, int chestplate, int leggings, int boots)