Record Class TierSet

java.lang.Object
java.lang.Record
info.u_team.u_team_core.item.tier.TierSet
All Implemented Interfaces:
Iterable<net.minecraftforge.registries.RegistryObject<? extends net.minecraft.world.item.TieredItem>>

public record TierSet(net.minecraftforge.registries.RegistryObject<UAxeItem> axe, net.minecraftforge.registries.RegistryObject<UHoeItem> hoe, net.minecraftforge.registries.RegistryObject<UPickaxeItem> pickaxe, net.minecraftforge.registries.RegistryObject<UShovelItem> shovel, net.minecraftforge.registries.RegistryObject<USwordItem> sword) extends Record implements Iterable<net.minecraftforge.registries.RegistryObject<? extends net.minecraft.world.item.TieredItem>>
  • Constructor Summary

    Constructors
    Constructor
    Description
    TierSet(net.minecraftforge.registries.RegistryObject<UAxeItem> axe, net.minecraftforge.registries.RegistryObject<UHoeItem> hoe, net.minecraftforge.registries.RegistryObject<UPickaxeItem> pickaxe, net.minecraftforge.registries.RegistryObject<UShovelItem> shovel, net.minecraftforge.registries.RegistryObject<USwordItem> sword)
    Creates an instance of a TierSet record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraftforge.registries.RegistryObject<UAxeItem>
    axe()
    Returns the value of the axe record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    net.minecraftforge.registries.RegistryObject<UHoeItem>
    hoe()
    Returns the value of the hoe record component.
    Iterator<net.minecraftforge.registries.RegistryObject<? extends net.minecraft.world.item.TieredItem>>
     
    net.minecraftforge.registries.RegistryObject<UPickaxeItem>
    Returns the value of the pickaxe record component.
    net.minecraftforge.registries.RegistryObject<UShovelItem>
    Returns the value of the shovel record component.
    net.minecraftforge.registries.RegistryObject<USwordItem>
    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

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Constructor Details

    • TierSet

      public TierSet(net.minecraftforge.registries.RegistryObject<UAxeItem> axe, net.minecraftforge.registries.RegistryObject<UHoeItem> hoe, net.minecraftforge.registries.RegistryObject<UPickaxeItem> pickaxe, net.minecraftforge.registries.RegistryObject<UShovelItem> shovel, net.minecraftforge.registries.RegistryObject<USwordItem> sword)
      Creates an instance of a TierSet record class.
      Parameters:
      axe - the value for the axe record component
      hoe - the value for the hoe record component
      pickaxe - the value for the pickaxe record component
      shovel - the value for the shovel record component
      sword - the value for the sword record component
  • Method Details

    • iterator

      public Iterator<net.minecraftforge.registries.RegistryObject<? extends net.minecraft.world.item.TieredItem>> iterator()
      Specified by:
      iterator in interface Iterable<net.minecraftforge.registries.RegistryObject<? extends net.minecraft.world.item.TieredItem>>
    • 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.
    • axe

      public net.minecraftforge.registries.RegistryObject<UAxeItem> axe()
      Returns the value of the axe record component.
      Returns:
      the value of the axe record component
    • hoe

      public net.minecraftforge.registries.RegistryObject<UHoeItem> hoe()
      Returns the value of the hoe record component.
      Returns:
      the value of the hoe record component
    • pickaxe

      public net.minecraftforge.registries.RegistryObject<UPickaxeItem> pickaxe()
      Returns the value of the pickaxe record component.
      Returns:
      the value of the pickaxe record component
    • shovel

      public net.minecraftforge.registries.RegistryObject<UShovelItem> shovel()
      Returns the value of the shovel record component.
      Returns:
      the value of the shovel record component
    • sword

      public net.minecraftforge.registries.RegistryObject<USwordItem> sword()
      Returns the value of the sword record component.
      Returns:
      the value of the sword record component