java.lang.Object
java.lang.Record
tech.anonymoushacker1279.immersiveweapons.data.recipes.families.ArmorFamilies

public record ArmorFamilies(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material, Supplier<? extends net.minecraft.world.item.ArmorItem> helmet, Supplier<? extends net.minecraft.world.item.ArmorItem> chestplate, Supplier<? extends net.minecraft.world.item.ArmorItem> leggings, Supplier<? extends net.minecraft.world.item.ArmorItem> boots, @Nullable Supplier<? extends net.minecraft.world.item.Item> smithingTemplateItem, @Nullable com.google.common.collect.ImmutableList<net.minecraft.world.item.Item> smithingBaseUpgrades) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ArmorFamilies
     
    static final ArmorFamilies
     
    static final ArmorFamilies
     
    static final com.google.common.collect.ImmutableList<ArmorFamilies>
     
    static final ArmorFamilies
     
    static final ArmorFamilies
     
    static final ArmorFamilies
     
    static final ArmorFamilies
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ArmorFamilies(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material, Supplier<? extends net.minecraft.world.item.ArmorItem> helmet, Supplier<? extends net.minecraft.world.item.ArmorItem> chestplate, Supplier<? extends net.minecraft.world.item.ArmorItem> leggings, Supplier<? extends net.minecraft.world.item.ArmorItem> boots, @Nullable Supplier<? extends net.minecraft.world.item.Item> smithingTemplateItem, @Nullable com.google.common.collect.ImmutableList<net.minecraft.world.item.Item> smithingBaseUpgrades)
    Creates an instance of a ArmorFamilies record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Supplier<? extends net.minecraft.world.item.ArmorItem>
    Returns the value of the boots record component.
    Supplier<? extends net.minecraft.world.item.ArmorItem>
    Returns the value of the chestplate record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Supplier<? extends net.minecraft.world.item.ArmorItem>
    Returns the value of the helmet record component.
    Supplier<? extends net.minecraft.world.item.ArmorItem>
    Returns the value of the leggings record component.
    net.minecraft.tags.TagKey<net.minecraft.world.item.Item>
    Returns the value of the material record component.
    @Nullable com.google.common.collect.ImmutableList<net.minecraft.world.item.Item>
    Returns the value of the smithingBaseUpgrades record component.
    @Nullable Supplier<? extends net.minecraft.world.item.Item>
    Returns the value of the smithingTemplateItem record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • ArmorFamilies

      public ArmorFamilies(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material, Supplier<? extends net.minecraft.world.item.ArmorItem> helmet, Supplier<? extends net.minecraft.world.item.ArmorItem> chestplate, Supplier<? extends net.minecraft.world.item.ArmorItem> leggings, Supplier<? extends net.minecraft.world.item.ArmorItem> boots, @Nullable @Nullable Supplier<? extends net.minecraft.world.item.Item> smithingTemplateItem, @Nullable @Nullable com.google.common.collect.ImmutableList<net.minecraft.world.item.Item> smithingBaseUpgrades)
      Creates an instance of a ArmorFamilies record class.
      Parameters:
      material - the value for the material record component
      helmet - the value for the helmet record component
      chestplate - the value for the chestplate record component
      leggings - the value for the leggings record component
      boots - the value for the boots record component
      smithingTemplateItem - the value for the smithingTemplateItem record component
      smithingBaseUpgrades - the value for the smithingBaseUpgrades record component
  • Method Details

    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • material

      public net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material()
      Returns the value of the material record component.
      Returns:
      the value of the material record component
    • helmet

      public Supplier<? extends net.minecraft.world.item.ArmorItem> helmet()
      Returns the value of the helmet record component.
      Returns:
      the value of the helmet record component
    • chestplate

      public Supplier<? extends net.minecraft.world.item.ArmorItem> chestplate()
      Returns the value of the chestplate record component.
      Returns:
      the value of the chestplate record component
    • leggings

      public Supplier<? extends net.minecraft.world.item.ArmorItem> leggings()
      Returns the value of the leggings record component.
      Returns:
      the value of the leggings record component
    • boots

      public Supplier<? extends net.minecraft.world.item.ArmorItem> boots()
      Returns the value of the boots record component.
      Returns:
      the value of the boots record component
    • smithingTemplateItem

      @Nullable public @Nullable Supplier<? extends net.minecraft.world.item.Item> smithingTemplateItem()
      Returns the value of the smithingTemplateItem record component.
      Returns:
      the value of the smithingTemplateItem record component
    • smithingBaseUpgrades

      @Nullable public @Nullable com.google.common.collect.ImmutableList<net.minecraft.world.item.Item> smithingBaseUpgrades()
      Returns the value of the smithingBaseUpgrades record component.
      Returns:
      the value of the smithingBaseUpgrades record component