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
ConstructorsConstructorDescriptionBlockBenchTextureImpl(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 aBlockBenchTextureImplrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable team.unnamed.creative.base.Writablefinal booleanIndicates whether some other object is "equal to" this one.folder()Returns the value of thefolderrecord component.booleanReturns the value of theframeInterpolaterecord component.Returns the value of theframeOrderTyperecord component.intReturns the value of theframeTimerecord component.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.intid()Returns the value of theidrecord component.image()booleaninternal()Returns the value of theinternalrecord component.booleanReturns the value of thelayersEnabledrecord component.name()Returns the value of thenamerecord component.Returns the value of thenamespacerecord component.booleanparticle()Returns the value of theparticlerecord component.path()Returns the value of thepathrecord component.Returns the value of therelativePathrecord component.Returns the value of therenderModerecord component.booleanReturns the value of therenderSidesrecord component.booleansaved()Returns the value of thesavedrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.uniqueId()Returns the value of theuniqueIdrecord component.intuvHeight()Returns the value of theuvHeightrecord component.intuvWidth()Returns the value of theuvWidthrecord component.booleanvisible()Returns the value of thevisiblerecord component.intwidth()Returns the value of thewidthrecord component.
-
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 aBlockBenchTextureImplrecord class.- Parameters:
uniqueId- the value for theuniqueIdrecord componentpath- the value for thepathrecord componentname- the value for thenamerecord componentfolder- the value for thefolderrecord componentnamespace- the value for thenamespacerecord componentid- the value for theidrecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord componentuvWidth- the value for theuvWidthrecord componentuvHeight- the value for theuvHeightrecord componentparticle- the value for theparticlerecord componentlayersEnabled- the value for thelayersEnabledrecord componentrenderMode- the value for therenderModerecord componentrenderSides- the value for therenderSidesrecord componentframeTime- the value for theframeTimerecord componentframeOrderType- the value for theframeOrderTyperecord componentframeInterpolate- the value for theframeInterpolaterecord componentvisible- the value for thevisiblerecord componentinternal- the value for theinternalrecord componentsaved- the value for thesavedrecord componentrelativePath- the value for therelativePathrecord componentsource- the value for thesourcerecord component
-
-
Method Details
-
asWritable
@Nullable public @Nullable team.unnamed.creative.base.Writable asWritable()- Specified by:
asWritablein interfaceBlockbenchTexture
-
image
- Specified by:
imagein interfaceBlockbenchTexture
-
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. -
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. -
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 '=='. -
uniqueId
Returns the value of theuniqueIdrecord component.- Specified by:
uniqueIdin interfaceBlockbenchTexture- Returns:
- the value of the
uniqueIdrecord component
-
path
Returns the value of thepathrecord component.- Specified by:
pathin interfaceBlockbenchTexture- Returns:
- the value of the
pathrecord component
-
name
Returns the value of thenamerecord component.- Specified by:
namein interfaceBlockbenchTexture- Returns:
- the value of the
namerecord component
-
folder
Returns the value of thefolderrecord component.- Specified by:
folderin interfaceBlockbenchTexture- Returns:
- the value of the
folderrecord component
-
namespace
Returns the value of thenamespacerecord component.- Specified by:
namespacein interfaceBlockbenchTexture- Returns:
- the value of the
namespacerecord component
-
id
public int id()Returns the value of theidrecord component.- Specified by:
idin interfaceBlockbenchTexture- Returns:
- the value of the
idrecord component
-
width
public int width()Returns the value of thewidthrecord component.- Specified by:
widthin interfaceBlockbenchTexture- Returns:
- the value of the
widthrecord component
-
height
public int height()Returns the value of theheightrecord component.- Specified by:
heightin interfaceBlockbenchTexture- Returns:
- the value of the
heightrecord component
-
uvWidth
@SerializedName("uv_width") public int uvWidth()Returns the value of theuvWidthrecord component.- Specified by:
uvWidthin interfaceBlockbenchTexture- Returns:
- the value of the
uvWidthrecord component
-
uvHeight
@SerializedName("uv_height") public int uvHeight()Returns the value of theuvHeightrecord component.- Specified by:
uvHeightin interfaceBlockbenchTexture- Returns:
- the value of the
uvHeightrecord component
-
particle
public boolean particle()Returns the value of theparticlerecord component.- Specified by:
particlein interfaceBlockbenchTexture- Returns:
- the value of the
particlerecord component
-
layersEnabled
@SerializedName("layers_enabled") public boolean layersEnabled()Returns the value of thelayersEnabledrecord component.- Specified by:
layersEnabledin interfaceBlockbenchTexture- Returns:
- the value of the
layersEnabledrecord component
-
renderMode
Returns the value of therenderModerecord component.- Specified by:
renderModein interfaceBlockbenchTexture- Returns:
- the value of the
renderModerecord component
-
renderSides
@SerializedName("render_sides") public boolean renderSides()Returns the value of therenderSidesrecord component.- Specified by:
renderSidesin interfaceBlockbenchTexture- Returns:
- the value of the
renderSidesrecord component
-
frameTime
@SerializedName("frame_time") public int frameTime()Returns the value of theframeTimerecord component.- Specified by:
frameTimein interfaceBlockbenchTexture- Returns:
- the value of the
frameTimerecord component
-
frameOrderType
Returns the value of theframeOrderTyperecord component.- Specified by:
frameOrderTypein interfaceBlockbenchTexture- Returns:
- the value of the
frameOrderTyperecord component
-
frameInterpolate
@SerializedName("frame_interpolate") public boolean frameInterpolate()Returns the value of theframeInterpolaterecord component.- Specified by:
frameInterpolatein interfaceBlockbenchTexture- Returns:
- the value of the
frameInterpolaterecord component
-
visible
public boolean visible()Returns the value of thevisiblerecord component.- Specified by:
visiblein interfaceBlockbenchTexture- Returns:
- the value of the
visiblerecord component
-
internal
public boolean internal()Returns the value of theinternalrecord component.- Specified by:
internalin interfaceBlockbenchTexture- Returns:
- the value of the
internalrecord component
-
saved
public boolean saved()Returns the value of thesavedrecord component.- Specified by:
savedin interfaceBlockbenchTexture- Returns:
- the value of the
savedrecord component
-
relativePath
Returns the value of therelativePathrecord component.- Specified by:
relativePathin interfaceBlockbenchTexture- Returns:
- the value of the
relativePathrecord component
-
source
Returns the value of thesourcerecord component.- Specified by:
sourcein interfaceBlockbenchTexture- Returns:
- the value of the
sourcerecord component
-