Enum Class CustomArmorMaterials
java.lang.Object
java.lang.Enum<CustomArmorMaterials>
tech.anonymoushacker1279.immersiveweapons.item.materials.CustomArmorMaterials
- All Implemented Interfaces:
Serializable,Comparable<CustomArmorMaterials>,Constable,net.minecraft.world.item.ArmorMaterial
public enum CustomArmorMaterials
extends Enum<CustomArmorMaterials>
implements net.minecraft.world.item.ArmorMaterial
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionintgetDefenseForType(net.minecraft.world.item.ArmorItem.Type type) intgetDurabilityForType(net.minecraft.world.item.ArmorItem.Type type) intGet the enchantment value.net.minecraft.sounds.SoundEventGet the equipping sound.floatGet the knockback resistance.getName()Get the name.net.minecraft.world.item.crafting.IngredientGet the repair ingredient.floatGet the toughness.voidsetEquipSound(net.minecraft.sounds.SoundEvent sound) Set the equipping sound.static CustomArmorMaterialsReturns the enum constant of this class with the specified name.static CustomArmorMaterials[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MOLTEN
-
COPPER
-
TESLA
-
COBALT
-
VENTUS
-
ASTRAL
-
STARSTORM
-
PADDED_LEATHER
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getDurabilityForType
public int getDurabilityForType(net.minecraft.world.item.ArmorItem.Type type) - Specified by:
getDurabilityForTypein interfacenet.minecraft.world.item.ArmorMaterial
-
getDefenseForType
public int getDefenseForType(net.minecraft.world.item.ArmorItem.Type type) - Specified by:
getDefenseForTypein interfacenet.minecraft.world.item.ArmorMaterial
-
getEnchantmentValue
public int getEnchantmentValue()Get the enchantment value.- Specified by:
getEnchantmentValuein interfacenet.minecraft.world.item.ArmorMaterial- Returns:
- int
-
getEquipSound
public net.minecraft.sounds.SoundEvent getEquipSound()Get the equipping sound.- Specified by:
getEquipSoundin interfacenet.minecraft.world.item.ArmorMaterial- Returns:
- SoundEvent
-
setEquipSound
public void setEquipSound(net.minecraft.sounds.SoundEvent sound) Set the equipping sound. -
getRepairIngredient
public net.minecraft.world.item.crafting.Ingredient getRepairIngredient()Get the repair ingredient.- Specified by:
getRepairIngredientin interfacenet.minecraft.world.item.ArmorMaterial- Returns:
- Ingredient
-
getName
Get the name.- Specified by:
getNamein interfacenet.minecraft.world.item.ArmorMaterial- Returns:
- String
-
getToughness
public float getToughness()Get the toughness.- Specified by:
getToughnessin interfacenet.minecraft.world.item.ArmorMaterial- Returns:
- float
-
getKnockbackResistance
public float getKnockbackResistance()Get the knockback resistance.- Specified by:
getKnockbackResistancein interfacenet.minecraft.world.item.ArmorMaterial- Returns:
- float
-