Record Class VanillaTieredItemFamilies

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

public record VanillaTieredItemFamilies(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> nugget, Supplier<? extends GauntletItem> gauntlet, Supplier<? extends PikeItem> pike, Supplier<? extends net.minecraft.world.item.Item> pikeHead, Supplier<? extends net.minecraft.world.item.ArrowItem> arrow, Supplier<? extends net.minecraft.world.item.Item> musketBall) extends Record
  • Field Details

  • Constructor Details

    • VanillaTieredItemFamilies

      public VanillaTieredItemFamilies(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> nugget, Supplier<? extends GauntletItem> gauntlet, Supplier<? extends PikeItem> pike, Supplier<? extends net.minecraft.world.item.Item> pikeHead, Supplier<? extends net.minecraft.world.item.ArrowItem> arrow, Supplier<? extends net.minecraft.world.item.Item> musketBall)
      Creates an instance of a VanillaTieredItemFamilies record class.
      Parameters:
      material - the value for the material record component
      nugget - the value for the nugget record component
      gauntlet - the value for the gauntlet record component
      pike - the value for the pike record component
      pikeHead - the value for the pikeHead record component
      arrow - the value for the arrow record component
      musketBall - the value for the musketBall 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
    • nugget

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

      public Supplier<? extends GauntletItem> gauntlet()
      Returns the value of the gauntlet record component.
      Returns:
      the value of the gauntlet record component
    • pike

      public Supplier<? extends PikeItem> pike()
      Returns the value of the pike record component.
      Returns:
      the value of the pike record component
    • pikeHead

      public Supplier<? extends net.minecraft.world.item.Item> pikeHead()
      Returns the value of the pikeHead record component.
      Returns:
      the value of the pikeHead record component
    • arrow

      public Supplier<? extends net.minecraft.world.item.ArrowItem> arrow()
      Returns the value of the arrow record component.
      Returns:
      the value of the arrow record component
    • musketBall

      public Supplier<? extends net.minecraft.world.item.Item> musketBall()
      Returns the value of the musketBall record component.
      Returns:
      the value of the musketBall record component