Record Class PoseEntry
java.lang.Object
java.lang.Record
com.mrbysco.armorposer.client.gui.widgets.PoseEntry
- All Implemented Interfaces:
Comparable<PoseEntry>
public record PoseEntry(PoseData pose, boolean userAdded)
extends Record
implements Comparable<PoseEntry>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintfinal booleanIndicates whether some other object is "equal to" this one.net.minecraft.network.chat.ComponentgetName()net.minecraft.nbt.CompoundTaggetTag()final inthashCode()Returns a hash code value for this object.pose()Returns the value of theposerecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuserAddedrecord component.
-
Constructor Details
-
PoseEntry
-
PoseEntry
Creates an instance of aPoseEntryrecord class.- Parameters:
pose- the value for theposerecord componentuserAdded- the value for theuserAddedrecord component
-
-
Method Details
-
getName
public net.minecraft.network.chat.Component getName() -
getTag
public net.minecraft.nbt.CompoundTag getTag() -
compareTo
- Specified by:
compareToin interfaceComparable<PoseEntry>
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
pose
Returns the value of theposerecord component.- Returns:
- the value of the
poserecord component
-
userAdded
public boolean userAdded()Returns the value of theuserAddedrecord component.- Returns:
- the value of the
userAddedrecord component
-