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
    Constructor
    Description
    PoseEntry(PoseData pose, boolean userAdded)
    Creates an instance of a PoseEntry record class.
    PoseEntry(String name, String data, boolean userAdded)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    compareTo(@NotNull PoseEntry o)
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    net.minecraft.network.chat.Component
     
    net.minecraft.nbt.CompoundTag
     
    final int
    Returns a hash code value for this object.
    Returns the value of the pose record component.
    final String
    Returns a string representation of this record class.
    boolean
    Returns the value of the userAdded record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • PoseEntry

      public PoseEntry(String name, String data, boolean userAdded)
    • PoseEntry

      public PoseEntry(PoseData pose, boolean userAdded)
      Creates an instance of a PoseEntry record class.
      Parameters:
      pose - the value for the pose record component
      userAdded - the value for the userAdded record component
  • Method Details

    • getName

      public net.minecraft.network.chat.Component getName()
    • getTag

      public net.minecraft.nbt.CompoundTag getTag()
    • compareTo

      public int compareTo(@NotNull @NotNull PoseEntry o)
      Specified by:
      compareTo in interface Comparable<PoseEntry>
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • pose

      public PoseData pose()
      Returns the value of the pose record component.
      Returns:
      the value of the pose record component
    • userAdded

      public boolean userAdded()
      Returns the value of the userAdded record component.
      Returns:
      the value of the userAdded record component