Class SimpleArmorMaterial

java.lang.Object
codechicken.lib.item.SimpleArmorMaterial
All Implemented Interfaces:
net.minecraft.world.item.ArmorMaterial

public class SimpleArmorMaterial extends Object implements net.minecraft.world.item.ArmorMaterial
Created by covers1624 on 14/12/20.
  • Constructor Details

    • SimpleArmorMaterial

      public SimpleArmorMaterial(int[] durability, int[] damageReduction, int enchantability, net.minecraft.sounds.SoundEvent soundEvent, Supplier<net.minecraft.world.item.crafting.Ingredient> repairMaterial, String textureName, float toughness, float knockbackResistance)
  • Method Details

    • builder

      public static SimpleArmorMaterial.Builder builder()
    • getDurabilityForType

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

      public int getDefenseForType(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

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

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

      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