Package de.teamlapen.werewolves.util
Class ArmorMaterial
java.lang.Object
de.teamlapen.werewolves.util.ArmorMaterial
- All Implemented Interfaces:
net.minecraft.world.item.ArmorMaterial
- Direct Known Subclasses:
ArmorMaterial.Tiered
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionArmorMaterial(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 Summary
Modifier and TypeMethodDescriptioncreateReduction(int helmet, int chestplate, int leggings, int boots) intgetDefenseForType(@NotNull net.minecraft.world.item.ArmorItem.Type type) intgetDurabilityForType(@NotNull net.minecraft.world.item.ArmorItem.Type type) intnet.minecraft.sounds.SoundEventfloatgetName()net.minecraft.world.item.crafting.Ingredientfloat
-
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:
getDurabilityForTypein interfacenet.minecraft.world.item.ArmorMaterial
-
getDefenseForType
public int getDefenseForType(@NotNull net.minecraft.world.item.ArmorItem.Type type) - Specified by:
getDefenseForTypein interfacenet.minecraft.world.item.ArmorMaterial
-
getEnchantmentValue
public int getEnchantmentValue()- Specified by:
getEnchantmentValuein interfacenet.minecraft.world.item.ArmorMaterial
-
getEquipSound
@Nonnull public net.minecraft.sounds.SoundEvent getEquipSound()- Specified by:
getEquipSoundin interfacenet.minecraft.world.item.ArmorMaterial
-
getRepairIngredient
@Nonnull public net.minecraft.world.item.crafting.Ingredient getRepairIngredient()- Specified by:
getRepairIngredientin interfacenet.minecraft.world.item.ArmorMaterial
-
getName
- Specified by:
getNamein interfacenet.minecraft.world.item.ArmorMaterial
-
getToughness
public float getToughness()- Specified by:
getToughnessin interfacenet.minecraft.world.item.ArmorMaterial
-
getKnockbackResistance
public float getKnockbackResistance()- Specified by:
getKnockbackResistancein interfacenet.minecraft.world.item.ArmorMaterial
-
createReduction
-