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
ConstructorsConstructorDescriptionBlockBenchElementImpl(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 aBlockBenchElementImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theallowMirrorModelingrecord component.intautoUv()Returns the value of theautoUvrecord component.booleanboxUv()Returns the value of theboxUvrecord component.intcolor()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.faces()Returns the value of thefacesrecord component.Map<team.unnamed.creative.base.CubeFace,BlockBenchUv> facesMap()float[]from()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.booleanlocked()Returns the value of thelockedrecord component.name()Returns the value of thenamerecord component.float[]origin()Returns the value of theoriginrecord component.Returns the value of therenderOrderrecord component.booleanrescale()Returns the value of therescalerecord component.float[]rotation()Returns the value of therotationrecord component.float[]to()Returns the value of thetorecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.uniqueId()Returns the value of theuniqueIdrecord component.
-
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 aBlockBenchElementImplrecord class.- Parameters:
uniqueId- the value for theuniqueIdrecord componenttype- the value for thetyperecord componentname- the value for thenamerecord componentboxUv- the value for theboxUvrecord componentrescale- the value for therescalerecord componentlocked- the value for thelockedrecord componentrenderOrder- the value for therenderOrderrecord componentallowMirrorModeling- the value for theallowMirrorModelingrecord componentautoUv- the value for theautoUvrecord componentcolor- the value for thecolorrecord componentfrom- the value for thefromrecord componentto- the value for thetorecord componentorigin- the value for theoriginrecord componentrotation- the value for therotationrecord componentfaces- the value for thefacesrecord component
-
-
Method Details
-
facesMap
- Specified by:
facesMapin interfaceBlockBenchElement
-
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 interfaceBlockBenchElement- Returns:
- the value of the
uniqueIdrecord component
-
type
Returns the value of thetyperecord component.- Specified by:
typein interfaceBlockBenchElement- Returns:
- the value of the
typerecord component
-
name
Returns the value of thenamerecord component.- Specified by:
namein interfaceBlockBenchElement- Returns:
- the value of the
namerecord component
-
boxUv
public boolean boxUv()Returns the value of theboxUvrecord component.- Specified by:
boxUvin interfaceBlockBenchElement- Returns:
- the value of the
boxUvrecord component
-
rescale
public boolean rescale()Returns the value of therescalerecord component.- Specified by:
rescalein interfaceBlockBenchElement- Returns:
- the value of the
rescalerecord component
-
locked
public boolean locked()Returns the value of thelockedrecord component.- Specified by:
lockedin interfaceBlockBenchElement- Returns:
- the value of the
lockedrecord component
-
renderOrder
Returns the value of therenderOrderrecord component.- Specified by:
renderOrderin interfaceBlockBenchElement- Returns:
- the value of the
renderOrderrecord component
-
allowMirrorModeling
@SerializedName("allow_mirror_modeling") public boolean allowMirrorModeling()Returns the value of theallowMirrorModelingrecord component.- Specified by:
allowMirrorModelingin interfaceBlockBenchElement- Returns:
- the value of the
allowMirrorModelingrecord component
-
autoUv
@SerializedName("autouv") public int autoUv()Returns the value of theautoUvrecord component.- Specified by:
autoUvin interfaceBlockBenchElement- Returns:
- the value of the
autoUvrecord component
-
color
public int color()Returns the value of thecolorrecord component.- Specified by:
colorin interfaceBlockBenchElement- Returns:
- the value of the
colorrecord component
-
from
public float[] from()Returns the value of thefromrecord component.- Specified by:
fromin interfaceBlockBenchElement- Returns:
- the value of the
fromrecord component
-
to
public float[] to()Returns the value of thetorecord component.- Specified by:
toin interfaceBlockBenchElement- Returns:
- the value of the
torecord component
-
origin
public float[] origin()Returns the value of theoriginrecord component.- Specified by:
originin interfaceBlockBenchElement- Returns:
- the value of the
originrecord component
-
rotation
public float[] rotation()Returns the value of therotationrecord component.- Specified by:
rotationin interfaceBlockBenchElement- Returns:
- the value of the
rotationrecord component
-
faces
Returns the value of thefacesrecord component.- Specified by:
facesin interfaceBlockBenchElement- Returns:
- the value of the
facesrecord component
-