Record Class OutlinerImpl
java.lang.Object
java.lang.Record
me.rochblondiaux.blockbench.outliner.OutlinerImpl
- All Implemented Interfaces:
Outliner
-
Constructor Summary
ConstructorsConstructorDescriptionOutlinerImpl(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 aOutlinerImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionchildren()Returns the value of thechildrenrecord component.intcolor()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanexport()Returns the value of theexportrecord component.final inthashCode()Returns a hash code value for this object.booleanmirrorUV()Returns the value of themirrorUVrecord component.name()Returns the value of thenamerecord component.@Nullable Stringnbt()Returns the value of thenbtrecord component.Float[]origin()Returns the value of theoriginrecord component.static OutlinerImplbooleanFloat[]rotation()Returns the value of therotationrecord component.final StringtoString()Returns a string representation of this record class.uniqueId()Returns the value of theuniqueIdrecord component.booleanvisible()Returns the value of thevisiblerecord component.
-
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 aOutlinerImplrecord class.- Parameters:
uniqueId- the value for theuniqueIdrecord componentname- the value for thenamerecord componentcolor- the value for thecolorrecord componentexport- the value for theexportrecord componentmirrorUV- the value for themirrorUVrecord componentnbt- the value for thenbtrecord componentorigin- the value for theoriginrecord componentrotation- the value for therotationrecord componentvisible- the value for thevisiblerecord componentchildren- the value for thechildrenrecord component
-
-
Method Details
-
redirection
public boolean redirection()- Specified by:
redirectionin interfaceOutliner
-
redirect
-
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. -
name
Returns the value of thenamerecord component. -
color
public int color()Returns the value of thecolorrecord component. -
export
public boolean export()Returns the value of theexportrecord component. -
mirrorUV
@SerializedName("mirror_uv") public boolean mirrorUV()Returns the value of themirrorUVrecord component. -
nbt
Returns the value of thenbtrecord component. -
origin
Returns the value of theoriginrecord component. -
rotation
Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-
visible
public boolean visible()Returns the value of thevisiblerecord component. -
children
Returns the value of thechildrenrecord component.
-