Record Class EquipmentSet.PrecedingToolCreativeEntries
java.lang.Object
java.lang.Record
net.rebel459.unified.api.data.set.EquipmentSet.PrecedingToolCreativeEntries
- Enclosing class:
EquipmentSet
public static record EquipmentSet.PrecedingToolCreativeEntries(Supplier<? extends net.minecraft.world.level.ItemLike> utilities, Supplier<? extends net.minecraft.world.level.ItemLike> combatSword, Supplier<? extends net.minecraft.world.level.ItemLike> combatSpear, Supplier<? extends net.minecraft.world.level.ItemLike> combatAxe)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPrecedingToolCreativeEntries(Supplier<? extends net.minecraft.world.level.ItemLike> utilities, Supplier<? extends net.minecraft.world.level.ItemLike> combatSword, Supplier<? extends net.minecraft.world.level.ItemLike> combatSpear, Supplier<? extends net.minecraft.world.level.ItemLike> combatAxe) Creates an instance of aPrecedingToolCreativeEntriesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionSupplier<? extends net.minecraft.world.level.ItemLike> Returns the value of thecombatAxerecord component.Supplier<? extends net.minecraft.world.level.ItemLike> Returns the value of thecombatSpearrecord component.Supplier<? extends net.minecraft.world.level.ItemLike> Returns the value of thecombatSwordrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Supplier<? extends net.minecraft.world.level.ItemLike> Returns the value of theutilitiesrecord component.
-
Constructor Details
-
PrecedingToolCreativeEntries
public PrecedingToolCreativeEntries(Supplier<? extends net.minecraft.world.level.ItemLike> utilities, Supplier<? extends net.minecraft.world.level.ItemLike> combatSword, Supplier<? extends net.minecraft.world.level.ItemLike> combatSpear, Supplier<? extends net.minecraft.world.level.ItemLike> combatAxe) Creates an instance of aPrecedingToolCreativeEntriesrecord class.- Parameters:
utilities- the value for theutilitiesrecord componentcombatSword- the value for thecombatSwordrecord componentcombatSpear- the value for thecombatSpearrecord componentcombatAxe- the value for thecombatAxerecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
utilities
Returns the value of theutilitiesrecord component.- Returns:
- the value of the
utilitiesrecord component
-
combatSword
Returns the value of thecombatSwordrecord component.- Returns:
- the value of the
combatSwordrecord component
-
combatSpear
Returns the value of thecombatSpearrecord component.- Returns:
- the value of the
combatSpearrecord component
-
combatAxe
Returns the value of thecombatAxerecord component.- Returns:
- the value of the
combatAxerecord component
-