Record Class NorthstarArmorTiers

java.lang.Object
java.lang.Record
com.lightning.northstar.content.NorthstarArmorTiers
All Implemented Interfaces:
net.minecraft.world.item.ArmorMaterial

public record NorthstarArmorTiers(String name, int durability, int[] protection, int enchantability, net.minecraft.sounds.SoundEvent equipSound, float toughness, float knockbackResistance, Supplier<net.minecraft.world.item.crafting.Ingredient> repairMaterial) extends Record implements net.minecraft.world.item.ArmorMaterial
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.world.item.ArmorMaterial
     
    static final net.minecraft.world.item.ArmorMaterial
     
    static final net.minecraft.world.item.ArmorMaterial
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    NorthstarArmorTiers(String name, int durability, int[] protection, int enchantability, net.minecraft.sounds.SoundEvent equipSound, float toughness, float knockbackResistance, Supplier<net.minecraft.world.item.crafting.Ingredient> repairMaterial)
    Creates an instance of a NorthstarArmorTiers record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the durability record component.
    int
    Returns the value of the enchantability record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    net.minecraft.sounds.SoundEvent
    Returns the value of the equipSound record component.
    int
    getDefenseForType(@NotNull net.minecraft.world.item.ArmorItem.Type type)
     
    int
    getDurabilityForType(@NotNull net.minecraft.world.item.ArmorItem.Type type)
     
    int
     
    @NotNull net.minecraft.sounds.SoundEvent
     
    float
     
    @NotNull String
     
    @NotNull net.minecraft.world.item.crafting.Ingredient
     
    float
     
    final int
    Returns a hash code value for this object.
    float
    Returns the value of the knockbackResistance record component.
    Returns the value of the name record component.
    int[]
    Returns the value of the protection record component.
    Supplier<net.minecraft.world.item.crafting.Ingredient>
    Returns the value of the repairMaterial record component.
    final String
    Returns a string representation of this record class.
    float
    Returns the value of the toughness record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • MARTIAN_STEEL_ARMOR

      public static final net.minecraft.world.item.ArmorMaterial MARTIAN_STEEL_ARMOR
    • IRON_SPACE_SUIT

      public static final net.minecraft.world.item.ArmorMaterial IRON_SPACE_SUIT
    • MARTIAN_STEEL_SPACE_SUIT

      public static final net.minecraft.world.item.ArmorMaterial MARTIAN_STEEL_SPACE_SUIT
  • Constructor Details

    • NorthstarArmorTiers

      public NorthstarArmorTiers(String name, int durability, int[] protection, int enchantability, net.minecraft.sounds.SoundEvent equipSound, float toughness, float knockbackResistance, Supplier<net.minecraft.world.item.crafting.Ingredient> repairMaterial)
      Creates an instance of a NorthstarArmorTiers record class.
      Parameters:
      name - the value for the name record component
      durability - the value for the durability record component
      protection - the value for the protection record component
      enchantability - the value for the enchantability record component
      equipSound - the value for the equipSound record component
      toughness - the value for the toughness record component
      knockbackResistance - the value for the knockbackResistance record component
      repairMaterial - the value for the repairMaterial record component
  • 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

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

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

      @NotNull public @NotNull 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
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • durability

      public int durability()
      Returns the value of the durability record component.
      Returns:
      the value of the durability record component
    • protection

      public int[] protection()
      Returns the value of the protection record component.
      Returns:
      the value of the protection record component
    • enchantability

      public int enchantability()
      Returns the value of the enchantability record component.
      Returns:
      the value of the enchantability record component
    • equipSound

      public net.minecraft.sounds.SoundEvent equipSound()
      Returns the value of the equipSound record component.
      Returns:
      the value of the equipSound record component
    • toughness

      public float toughness()
      Returns the value of the toughness record component.
      Returns:
      the value of the toughness record component
    • knockbackResistance

      public float knockbackResistance()
      Returns the value of the knockbackResistance record component.
      Returns:
      the value of the knockbackResistance record component
    • repairMaterial

      public Supplier<net.minecraft.world.item.crafting.Ingredient> repairMaterial()
      Returns the value of the repairMaterial record component.
      Returns:
      the value of the repairMaterial record component