Record Class BlockBenchTextureImpl

java.lang.Object
java.lang.Record
me.rochblondiaux.blockbench.texture.BlockBenchTextureImpl
All Implemented Interfaces:
BlockbenchTexture

public record BlockBenchTextureImpl(UUID uniqueId, String path, String name, String folder, String namespace, int id, int width, int height, int uvWidth, int uvHeight, boolean particle, boolean layersEnabled, String renderMode, boolean renderSides, int frameTime, String frameOrderType, boolean frameInterpolate, boolean visible, boolean internal, boolean saved, String relativePath, String source) extends Record implements BlockbenchTexture
  • Constructor Summary

    Constructors
    Constructor
    Description
    BlockBenchTextureImpl(UUID uniqueId, String path, String name, String folder, String namespace, int id, int width, int height, int uvWidth, int uvHeight, boolean particle, boolean layersEnabled, String renderMode, boolean renderSides, int frameTime, String frameOrderType, boolean frameInterpolate, boolean visible, boolean internal, boolean saved, String relativePath, String source)
    Creates an instance of a BlockBenchTextureImpl record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable team.unnamed.creative.base.Writable
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the folder record component.
    boolean
    Returns the value of the frameInterpolate record component.
    Returns the value of the frameOrderType record component.
    int
    Returns the value of the frameTime record component.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the height record component.
    int
    id()
    Returns the value of the id record component.
     
    boolean
    Returns the value of the internal record component.
    boolean
    Returns the value of the layersEnabled record component.
    Returns the value of the name record component.
    Returns the value of the namespace record component.
    boolean
    Returns the value of the particle record component.
    Returns the value of the path record component.
    Returns the value of the relativePath record component.
    Returns the value of the renderMode record component.
    boolean
    Returns the value of the renderSides record component.
    boolean
    Returns the value of the saved record component.
    Returns the value of the source record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the uniqueId record component.
    int
    Returns the value of the uvHeight record component.
    int
    Returns the value of the uvWidth record component.
    boolean
    Returns the value of the visible record component.
    int
    Returns the value of the width record component.

    Methods inherited from class java.lang.Object

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

    • BlockBenchTextureImpl

      public BlockBenchTextureImpl(UUID uniqueId, String path, String name, String folder, String namespace, int id, int width, int height, int uvWidth, int uvHeight, boolean particle, boolean layersEnabled, String renderMode, boolean renderSides, int frameTime, String frameOrderType, boolean frameInterpolate, boolean visible, boolean internal, boolean saved, String relativePath, String source)
      Creates an instance of a BlockBenchTextureImpl record class.
      Parameters:
      uniqueId - the value for the uniqueId record component
      path - the value for the path record component
      name - the value for the name record component
      folder - the value for the folder record component
      namespace - the value for the namespace record component
      id - the value for the id record component
      width - the value for the width record component
      height - the value for the height record component
      uvWidth - the value for the uvWidth record component
      uvHeight - the value for the uvHeight record component
      particle - the value for the particle record component
      layersEnabled - the value for the layersEnabled record component
      renderMode - the value for the renderMode record component
      renderSides - the value for the renderSides record component
      frameTime - the value for the frameTime record component
      frameOrderType - the value for the frameOrderType record component
      frameInterpolate - the value for the frameInterpolate record component
      visible - the value for the visible record component
      internal - the value for the internal record component
      saved - the value for the saved record component
      relativePath - the value for the relativePath record component
      source - the value for the source record component
  • Method Details

    • asWritable

      @Nullable public @Nullable team.unnamed.creative.base.Writable asWritable()
      Specified by:
      asWritable in interface BlockbenchTexture
    • image

      public BufferedImage image()
      Specified by:
      image in interface BlockbenchTexture
    • 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 BlockbenchTexture
      Returns:
      the value of the uniqueId record component
    • path

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

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

      public String folder()
      Returns the value of the folder record component.
      Specified by:
      folder in interface BlockbenchTexture
      Returns:
      the value of the folder record component
    • namespace

      public String namespace()
      Returns the value of the namespace record component.
      Specified by:
      namespace in interface BlockbenchTexture
      Returns:
      the value of the namespace record component
    • id

      public int id()
      Returns the value of the id record component.
      Specified by:
      id in interface BlockbenchTexture
      Returns:
      the value of the id record component
    • width

      public int width()
      Returns the value of the width record component.
      Specified by:
      width in interface BlockbenchTexture
      Returns:
      the value of the width record component
    • height

      public int height()
      Returns the value of the height record component.
      Specified by:
      height in interface BlockbenchTexture
      Returns:
      the value of the height record component
    • uvWidth

      @SerializedName("uv_width") public int uvWidth()
      Returns the value of the uvWidth record component.
      Specified by:
      uvWidth in interface BlockbenchTexture
      Returns:
      the value of the uvWidth record component
    • uvHeight

      @SerializedName("uv_height") public int uvHeight()
      Returns the value of the uvHeight record component.
      Specified by:
      uvHeight in interface BlockbenchTexture
      Returns:
      the value of the uvHeight record component
    • particle

      public boolean particle()
      Returns the value of the particle record component.
      Specified by:
      particle in interface BlockbenchTexture
      Returns:
      the value of the particle record component
    • layersEnabled

      @SerializedName("layers_enabled") public boolean layersEnabled()
      Returns the value of the layersEnabled record component.
      Specified by:
      layersEnabled in interface BlockbenchTexture
      Returns:
      the value of the layersEnabled record component
    • renderMode

      @SerializedName("render_mode") public String renderMode()
      Returns the value of the renderMode record component.
      Specified by:
      renderMode in interface BlockbenchTexture
      Returns:
      the value of the renderMode record component
    • renderSides

      @SerializedName("render_sides") public boolean renderSides()
      Returns the value of the renderSides record component.
      Specified by:
      renderSides in interface BlockbenchTexture
      Returns:
      the value of the renderSides record component
    • frameTime

      @SerializedName("frame_time") public int frameTime()
      Returns the value of the frameTime record component.
      Specified by:
      frameTime in interface BlockbenchTexture
      Returns:
      the value of the frameTime record component
    • frameOrderType

      @SerializedName("frame_order_type") public String frameOrderType()
      Returns the value of the frameOrderType record component.
      Specified by:
      frameOrderType in interface BlockbenchTexture
      Returns:
      the value of the frameOrderType record component
    • frameInterpolate

      @SerializedName("frame_interpolate") public boolean frameInterpolate()
      Returns the value of the frameInterpolate record component.
      Specified by:
      frameInterpolate in interface BlockbenchTexture
      Returns:
      the value of the frameInterpolate record component
    • visible

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

      public boolean internal()
      Returns the value of the internal record component.
      Specified by:
      internal in interface BlockbenchTexture
      Returns:
      the value of the internal record component
    • saved

      public boolean saved()
      Returns the value of the saved record component.
      Specified by:
      saved in interface BlockbenchTexture
      Returns:
      the value of the saved record component
    • relativePath

      @SerializedName("relative_path") public String relativePath()
      Returns the value of the relativePath record component.
      Specified by:
      relativePath in interface BlockbenchTexture
      Returns:
      the value of the relativePath record component
    • source

      public String source()
      Returns the value of the source record component.
      Specified by:
      source in interface BlockbenchTexture
      Returns:
      the value of the source record component