Record Class BlockBenchElementImpl

java.lang.Object
java.lang.Record
me.rochblondiaux.blockbench.element.BlockBenchElementImpl
All Implemented Interfaces:
BlockBenchElement

public record BlockBenchElementImpl(UUID uniqueId, String type, String name, boolean boxUv, boolean rescale, boolean locked, String renderOrder, boolean allowMirrorModeling, int autoUv, int color, float[] from, float[] to, float[] origin, float[] rotation, BlockBenchElementFace faces) extends Record implements BlockBenchElement
  • Constructor Summary

    Constructors
    Constructor
    Description
    BlockBenchElementImpl(UUID uniqueId, String type, String name, boolean boxUv, boolean rescale, boolean locked, String renderOrder, boolean allowMirrorModeling, int autoUv, int color, float[] from, float[] to, float[] origin, float[] rotation, BlockBenchElementFace faces)
    Creates an instance of a BlockBenchElementImpl record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the allowMirrorModeling record component.
    int
    Returns the value of the autoUv record component.
    boolean
    Returns the value of the boxUv record component.
    int
    Returns the value of the color record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the faces record component.
    Map<team.unnamed.creative.base.CubeFace,BlockBenchUv>
     
    float[]
    Returns the value of the from record component.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the locked record component.
    Returns the value of the name record component.
    float[]
    Returns the value of the origin record component.
    Returns the value of the renderOrder record component.
    boolean
    Returns the value of the rescale record component.
    float[]
    Returns the value of the rotation record component.
    float[]
    to()
    Returns the value of the to record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the type record component.
    Returns the value of the uniqueId record component.

    Methods inherited from class java.lang.Object

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

    • BlockBenchElementImpl

      public BlockBenchElementImpl(UUID uniqueId, String type, String name, boolean boxUv, boolean rescale, boolean locked, String renderOrder, boolean allowMirrorModeling, int autoUv, int color, float[] from, float[] to, float[] origin, float[] rotation, BlockBenchElementFace faces)
      Creates an instance of a BlockBenchElementImpl record class.
      Parameters:
      uniqueId - the value for the uniqueId record component
      type - the value for the type record component
      name - the value for the name record component
      boxUv - the value for the boxUv record component
      rescale - the value for the rescale record component
      locked - the value for the locked record component
      renderOrder - the value for the renderOrder record component
      allowMirrorModeling - the value for the allowMirrorModeling record component
      autoUv - the value for the autoUv record component
      color - the value for the color record component
      from - the value for the from record component
      to - the value for the to record component
      origin - the value for the origin record component
      rotation - the value for the rotation record component
      faces - the value for the faces record component
  • Method Details

    • facesMap

      public Map<team.unnamed.creative.base.CubeFace,BlockBenchUv> facesMap()
      Specified by:
      facesMap in interface BlockBenchElement
    • 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 BlockBenchElement
      Returns:
      the value of the uniqueId record component
    • type

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

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

      public boolean boxUv()
      Returns the value of the boxUv record component.
      Specified by:
      boxUv in interface BlockBenchElement
      Returns:
      the value of the boxUv record component
    • rescale

      public boolean rescale()
      Returns the value of the rescale record component.
      Specified by:
      rescale in interface BlockBenchElement
      Returns:
      the value of the rescale record component
    • locked

      public boolean locked()
      Returns the value of the locked record component.
      Specified by:
      locked in interface BlockBenchElement
      Returns:
      the value of the locked record component
    • renderOrder

      @SerializedName("render_order") public String renderOrder()
      Returns the value of the renderOrder record component.
      Specified by:
      renderOrder in interface BlockBenchElement
      Returns:
      the value of the renderOrder record component
    • allowMirrorModeling

      @SerializedName("allow_mirror_modeling") public boolean allowMirrorModeling()
      Returns the value of the allowMirrorModeling record component.
      Specified by:
      allowMirrorModeling in interface BlockBenchElement
      Returns:
      the value of the allowMirrorModeling record component
    • autoUv

      @SerializedName("autouv") public int autoUv()
      Returns the value of the autoUv record component.
      Specified by:
      autoUv in interface BlockBenchElement
      Returns:
      the value of the autoUv record component
    • color

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

      public float[] from()
      Returns the value of the from record component.
      Specified by:
      from in interface BlockBenchElement
      Returns:
      the value of the from record component
    • to

      public float[] to()
      Returns the value of the to record component.
      Specified by:
      to in interface BlockBenchElement
      Returns:
      the value of the to record component
    • origin

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

      public float[] rotation()
      Returns the value of the rotation record component.
      Specified by:
      rotation in interface BlockBenchElement
      Returns:
      the value of the rotation record component
    • faces

      public BlockBenchElementFace faces()
      Returns the value of the faces record component.
      Specified by:
      faces in interface BlockBenchElement
      Returns:
      the value of the faces record component