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
ConstructorsConstructorDescriptionTierSet
(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 aTierSet
record class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraftforge.registries.RegistryObject<UAxeItem>
axe()
Returns the value of theaxe
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.net.minecraftforge.registries.RegistryObject<UHoeItem>
hoe()
Returns the value of thehoe
record component.Iterator<net.minecraftforge.registries.RegistryObject<? extends net.minecraft.world.item.TieredItem>>
iterator()
net.minecraftforge.registries.RegistryObject<UPickaxeItem>
pickaxe()
Returns the value of thepickaxe
record component.net.minecraftforge.registries.RegistryObject<UShovelItem>
shovel()
Returns the value of theshovel
record component.net.minecraftforge.registries.RegistryObject<USwordItem>
sword()
Returns the value of thesword
record component.final String
toString()
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 aTierSet
record class.- Parameters:
axe
- the value for theaxe
record componenthoe
- the value for thehoe
record componentpickaxe
- the value for thepickaxe
record componentshovel
- the value for theshovel
record componentsword
- the value for thesword
record component
-
-
Method Details
-
iterator
public Iterator<net.minecraftforge.registries.RegistryObject<? extends net.minecraft.world.item.TieredItem>> iterator() -
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. -
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. -
equals
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 withObjects::equals(Object,Object)
. -
axe
Returns the value of theaxe
record component.- Returns:
- the value of the
axe
record component
-
hoe
Returns the value of thehoe
record component.- Returns:
- the value of the
hoe
record component
-
pickaxe
Returns the value of thepickaxe
record component.- Returns:
- the value of the
pickaxe
record component
-
shovel
Returns the value of theshovel
record component.- Returns:
- the value of the
shovel
record component
-
sword
Returns the value of thesword
record component.- Returns:
- the value of the
sword
record component
-