Package com.minecolonies.core.items
Class MineColoniesArmorMaterial
java.lang.Object
com.minecolonies.core.items.MineColoniesArmorMaterial
- All Implemented Interfaces:
net.minecraft.world.item.ArmorMaterial
public class MineColoniesArmorMaterial
extends Object
implements net.minecraft.world.item.ArmorMaterial
Implementation for the ArmorMaterial interface, so we can add custom armor types.
-
Constructor Summary
ConstructorsConstructorDescriptionMineColoniesArmorMaterial(String name, int durabilityMultiplier, Map<net.minecraft.world.item.ArmorItem.Type, Integer> protectionFunctionForType, int enchantmentValue, net.minecraft.sounds.SoundEvent sound, float toughness, float knockbackResistance, Supplier<net.minecraft.world.item.crafting.Ingredient> repairIngredient) -
Method Summary
Modifier and TypeMethodDescriptionintgetDefenseForType(net.minecraft.world.item.ArmorItem.Type type) intgetDurabilityForType(net.minecraft.world.item.ArmorItem.Type type) int@NotNull net.minecraft.sounds.SoundEventfloat@NotNull StringgetName()@NotNull net.minecraft.world.item.crafting.Ingredientfloat
-
Constructor Details
-
MineColoniesArmorMaterial
public MineColoniesArmorMaterial(String name, int durabilityMultiplier, Map<net.minecraft.world.item.ArmorItem.Type, Integer> protectionFunctionForType, int enchantmentValue, net.minecraft.sounds.SoundEvent sound, float toughness, float knockbackResistance, Supplier<net.minecraft.world.item.crafting.Ingredient> repairIngredient)
-
-
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
@NotNull public @NotNull net.minecraft.sounds.SoundEvent getEquipSound()- Specified by:
getEquipSoundin interfacenet.minecraft.world.item.ArmorMaterial
-
getRepairIngredient
@NotNull public @NotNull 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
-