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

public record ToolFamilies(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> nugget, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> handle, Supplier<? extends net.minecraft.world.item.SwordItem> sword, Supplier<? extends net.minecraft.world.item.PickaxeItem> pickaxe, Supplier<? extends net.minecraft.world.item.AxeItem> axe, Supplier<? extends net.minecraft.world.item.ShovelItem> shovel, Supplier<? extends net.minecraft.world.item.HoeItem> hoe, Supplier<? extends GauntletItem> gauntlet, Supplier<? extends PikeItem> pike, @Nullable Supplier<? extends net.minecraft.world.item.Item> pikeHead, Supplier<? extends net.minecraft.world.item.ArrowItem> arrow, @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 ToolFamilies
     
    static final ToolFamilies
     
    static final ToolFamilies
     
    static final Collection<ToolFamilies>
     
    static final com.google.common.collect.ImmutableList<ToolFamilies>
     
    static final ToolFamilies
     
    static final ToolFamilies
     
    static final ToolFamilies
     
    static final ToolFamilies
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ToolFamilies(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> nugget, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> handle, Supplier<? extends net.minecraft.world.item.SwordItem> sword, Supplier<? extends net.minecraft.world.item.PickaxeItem> pickaxe, Supplier<? extends net.minecraft.world.item.AxeItem> axe, Supplier<? extends net.minecraft.world.item.ShovelItem> shovel, Supplier<? extends net.minecraft.world.item.HoeItem> hoe, Supplier<? extends GauntletItem> gauntlet, Supplier<? extends PikeItem> pike, @Nullable Supplier<? extends net.minecraft.world.item.Item> pikeHead, Supplier<? extends net.minecraft.world.item.ArrowItem> arrow, @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 ToolFamilies record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Supplier<? extends net.minecraft.world.item.ArrowItem>
    Returns the value of the arrow record component.
    Supplier<? extends net.minecraft.world.item.AxeItem>
    axe()
    Returns the value of the axe record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the gauntlet record component.
    net.minecraft.tags.TagKey<net.minecraft.world.item.Item>
    Returns the value of the handle record component.
    final int
    Returns a hash code value for this object.
    Supplier<? extends net.minecraft.world.item.HoeItem>
    hoe()
    Returns the value of the hoe record component.
    net.minecraft.tags.TagKey<net.minecraft.world.item.Item>
    Returns the value of the material record component.
    net.minecraft.tags.TagKey<net.minecraft.world.item.Item>
    Returns the value of the nugget record component.
    Supplier<? extends net.minecraft.world.item.PickaxeItem>
    Returns the value of the pickaxe record component.
    Supplier<? extends PikeItem>
    Returns the value of the pike record component.
    @Nullable Supplier<? extends net.minecraft.world.item.Item>
    Returns the value of the pikeHead record component.
    Supplier<? extends net.minecraft.world.item.ShovelItem>
    Returns the value of the shovel 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.
    Supplier<? extends net.minecraft.world.item.SwordItem>
    Returns the value of the sword 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

    • ToolFamilies

      public ToolFamilies(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> nugget, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> handle, Supplier<? extends net.minecraft.world.item.SwordItem> sword, Supplier<? extends net.minecraft.world.item.PickaxeItem> pickaxe, Supplier<? extends net.minecraft.world.item.AxeItem> axe, Supplier<? extends net.minecraft.world.item.ShovelItem> shovel, Supplier<? extends net.minecraft.world.item.HoeItem> hoe, Supplier<? extends GauntletItem> gauntlet, Supplier<? extends PikeItem> pike, @Nullable @Nullable Supplier<? extends net.minecraft.world.item.Item> pikeHead, Supplier<? extends net.minecraft.world.item.ArrowItem> arrow, @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 ToolFamilies record class.
      Parameters:
      material - the value for the material record component
      nugget - the value for the nugget record component
      handle - the value for the handle record component
      sword - the value for the sword record component
      pickaxe - the value for the pickaxe record component
      axe - the value for the axe record component
      shovel - the value for the shovel record component
      hoe - the value for the hoe 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
      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
    • 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
    • handle

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

      public Supplier<? extends net.minecraft.world.item.SwordItem> sword()
      Returns the value of the sword record component.
      Returns:
      the value of the sword record component
    • pickaxe

      public Supplier<? extends net.minecraft.world.item.PickaxeItem> pickaxe()
      Returns the value of the pickaxe record component.
      Returns:
      the value of the pickaxe record component
    • axe

      public Supplier<? extends net.minecraft.world.item.AxeItem> axe()
      Returns the value of the axe record component.
      Returns:
      the value of the axe record component
    • shovel

      public Supplier<? extends net.minecraft.world.item.ShovelItem> shovel()
      Returns the value of the shovel record component.
      Returns:
      the value of the shovel record component
    • hoe

      public Supplier<? extends net.minecraft.world.item.HoeItem> hoe()
      Returns the value of the hoe record component.
      Returns:
      the value of the hoe 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

      @Nullable public @Nullable 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
    • 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