Record Class OutlinerImpl

java.lang.Object
java.lang.Record
me.rochblondiaux.blockbench.outliner.OutlinerImpl
All Implemented Interfaces:
Outliner

public record OutlinerImpl(UUID uniqueId, String name, int color, boolean export, boolean mirrorUV, @Nullable String nbt, Float[] origin, Float[] rotation, boolean visible, List<OutlinerImpl> children) extends Record implements Outliner
  • Constructor Summary

    Constructors
    Constructor
    Description
    OutlinerImpl(UUID uniqueId, String name, int color, boolean export, boolean mirrorUV, @Nullable String nbt, Float[] origin, Float[] rotation, boolean visible, List<OutlinerImpl> children)
    Creates an instance of a OutlinerImpl record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the children record component.
    int
    Returns the value of the color record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    boolean
    Returns the value of the export record component.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the mirrorUV record component.
    Returns the value of the name record component.
    @Nullable String
    nbt()
    Returns the value of the nbt record component.
    Returns the value of the origin record component.
    redirect(UUID uniqueId)
     
    boolean
     
    Returns the value of the rotation record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the uniqueId record component.
    boolean
    Returns the value of the visible record component.

    Methods inherited from class java.lang.Object

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

    • OutlinerImpl

      public OutlinerImpl(UUID uniqueId, String name, int color, boolean export, boolean mirrorUV, @Nullable @Nullable String nbt, Float[] origin, Float[] rotation, boolean visible, List<OutlinerImpl> children)
      Creates an instance of a OutlinerImpl record class.
      Parameters:
      uniqueId - the value for the uniqueId record component
      name - the value for the name record component
      color - the value for the color record component
      export - the value for the export record component
      mirrorUV - the value for the mirrorUV record component
      nbt - the value for the nbt record component
      origin - the value for the origin record component
      rotation - the value for the rotation record component
      visible - the value for the visible record component
      children - the value for the children record component
  • Method Details

    • redirection

      public boolean redirection()
      Specified by:
      redirection in interface Outliner
    • redirect

      public static OutlinerImpl redirect(UUID uniqueId)
    • 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 '=='.
      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.
    • uniqueId

      @SerializedName("uuid") public UUID uniqueId()
      Returns the value of the uniqueId record component.
      Specified by:
      uniqueId in interface Outliner
      Returns:
      the value of the uniqueId record component
    • name

      public String name()
      Returns the value of the name record component.
      Specified by:
      name in interface Outliner
      Returns:
      the value of the name record component
    • color

      public int color()
      Returns the value of the color record component.
      Specified by:
      color in interface Outliner
      Returns:
      the value of the color record component
    • export

      public boolean export()
      Returns the value of the export record component.
      Specified by:
      export in interface Outliner
      Returns:
      the value of the export record component
    • mirrorUV

      @SerializedName("mirror_uv") public boolean mirrorUV()
      Returns the value of the mirrorUV record component.
      Specified by:
      mirrorUV in interface Outliner
      Returns:
      the value of the mirrorUV record component
    • nbt

      @Nullable public @Nullable String nbt()
      Returns the value of the nbt record component.
      Specified by:
      nbt in interface Outliner
      Returns:
      the value of the nbt record component
    • origin

      public Float[] origin()
      Returns the value of the origin record component.
      Specified by:
      origin in interface Outliner
      Returns:
      the value of the origin record component
    • rotation

      public Float[] rotation()
      Returns the value of the rotation record component.
      Returns:
      the value of the rotation record component
    • visible

      public boolean visible()
      Returns the value of the visible record component.
      Specified by:
      visible in interface Outliner
      Returns:
      the value of the visible record component
    • children

      public List<OutlinerImpl> children()
      Returns the value of the children record component.
      Specified by:
      children in interface Outliner
      Returns:
      the value of the children record component