Package kr.toxicity.model.api.data.raw
Record Class ModelChildren.ModelGroup
java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.raw.ModelChildren.ModelGroup
- Record Components:
name- group nameorigin- originrotation- rotationuuid- uuidchildren- children_visibility- visibility
- All Implemented Interfaces:
ModelChildren
- Enclosing interface:
ModelChildren
public static record ModelChildren.ModelGroup(@NotNull String name, @Nullable Float3 origin, @Nullable Float3 rotation, @NotNull String uuid, @NotNull List<ModelChildren> children, @Nullable Boolean _visibility)
extends Record
implements ModelChildren
A raw group of models.
-
Nested Class Summary
Nested classes/interfaces inherited from interface kr.toxicity.model.api.data.raw.ModelChildren
ModelChildren.ModelGroup, ModelChildren.ModelUUID, ModelChildren.Parser -
Field Summary
Fields inherited from interface kr.toxicity.model.api.data.raw.ModelChildren
PARSER -
Constructor Summary
ConstructorsConstructorDescriptionModelGroup(@NotNull String name, @Nullable Float3 origin, @Nullable Float3 rotation, @NotNull String uuid, @NotNull List<ModelChildren> children, @Nullable Boolean _visibility) Creates an instance of aModelGrouprecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable BooleanReturns the value of the_visibilityrecord component.@NotNull List<ModelChildren> children()Returns the value of thechildrenrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull Stringname()Returns the value of thenamerecord component.@NotNull Float3origin()Returns the value of theoriginrecord component.@NotNull Float3rotation()Returns the value of therotationrecord component.final StringtoString()Returns a string representation of this record class.@NotNull Stringuuid()Returns the value of theuuidrecord component.booleanMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface kr.toxicity.model.api.data.raw.ModelChildren
toBlueprint
-
Constructor Details
-
ModelGroup
public ModelGroup(@NotNull @NotNull String name, @Nullable @Nullable Float3 origin, @Nullable @Nullable Float3 rotation, @NotNull @NotNull String uuid, @NotNull @NotNull List<ModelChildren> children, @Nullable @Nullable Boolean _visibility) Creates an instance of aModelGrouprecord class.- Parameters:
name- the value for thenamerecord componentorigin- the value for theoriginrecord componentrotation- the value for therotationrecord componentuuid- the value for theuuidrecord componentchildren- the value for thechildrenrecord component_visibility- the value for the_visibilityrecord component
-
-
Method Details
-
origin
Returns the value of theoriginrecord component.- Returns:
- the value of the
originrecord component
-
rotation
Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-
visibility
public boolean visibility() -
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. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
children
Returns the value of thechildrenrecord component.- Returns:
- the value of the
childrenrecord component
-
_visibility
Returns the value of the_visibilityrecord component.- Returns:
- the value of the
_visibilityrecord component
-