Package kr.toxicity.model.api.data.raw
Record Class ModelElement.Cube
java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.raw.ModelElement.Cube
- Record Components:
name- nameuuid- cube's uuidfrom- min-positionto- max-positioninflate- inflaterotation- rotationorigin- originfaces- uv_visibility- visibility
- All Implemented Interfaces:
ModelElement
- Enclosing interface:
ModelElement
public static record ModelElement.Cube(@NotNull String name, @NotNull String uuid, @Nullable Float3 from, @Nullable Float3 to, float inflate, @Nullable Float3 rotation, @NotNull Float3 origin, @Nullable ModelFace faces, @Nullable Boolean _visibility)
extends Record
implements ModelElement
A raw model's cube.
-
Nested Class Summary
Nested classes/interfaces inherited from interface kr.toxicity.model.api.data.raw.ModelElement
ModelElement.Camera, ModelElement.Cube, ModelElement.Locator, ModelElement.NullObject, ModelElement.Unsupported -
Field Summary
Fields inherited from interface kr.toxicity.model.api.data.raw.ModelElement
PARSER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable BooleanReturns the value of the_visibilityrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable ModelFacefaces()Returns the value of thefacesrecord component.@NotNull Float3from()Gets from-positionfinal inthashCode()Returns a hash code value for this object.floatinflate()Returns the value of theinflaterecord component.@NotNull Stringname()Returns the value of thenamerecord component.@NotNull Float3origin()Returns the value of theoriginrecord component.@NotNull Float3rotation()Gets rotation@NotNull Float3to()Gets to-position@NotNull BlueprintElementConverts to blueprintfinal StringtoString()Returns a string representation of this record class.@NotNull Stringtype()Gets type@NotNull Stringuuid()Returns the value of theuuidrecord component.booleanGets visibilityMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface kr.toxicity.model.api.data.raw.ModelElement
isSupported
-
Constructor Details
-
Cube
public Cube(@NotNull @NotNull String name, @NotNull @NotNull String uuid, @Nullable @Nullable Float3 from, @Nullable @Nullable Float3 to, float inflate, @Nullable @Nullable Float3 rotation, @NotNull @NotNull Float3 origin, @Nullable @Nullable ModelFace faces, @Nullable @Nullable Boolean _visibility) Creates an instance of aCuberecord class.- Parameters:
name- the value for thenamerecord componentuuid- the value for theuuidrecord componentfrom- the value for thefromrecord componentto- the value for thetorecord componentinflate- the value for theinflaterecord componentrotation- the value for therotationrecord componentorigin- the value for theoriginrecord componentfaces- the value for thefacesrecord component_visibility- the value for the_visibilityrecord component
-
-
Method Details
-
type
Description copied from interface:ModelElementGets type- Specified by:
typein interfaceModelElement- Returns:
- type
-
from
Gets from-position- Returns:
- from-position
-
to
Gets to-position- Returns:
- to-position
-
visibility
public boolean visibility()Gets visibility- Returns:
- visibility
-
rotation
Gets rotation- Returns:
- rotation
-
toBlueprint
Description copied from interface:ModelElementConverts to blueprint- Specified by:
toBlueprintin interfaceModelElement- Returns:
- blueprint
-
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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
uuid
Returns the value of theuuidrecord component.- Specified by:
uuidin interfaceModelElement- Returns:
- the value of the
uuidrecord component
-
inflate
public float inflate()Returns the value of theinflaterecord component.- Returns:
- the value of the
inflaterecord component
-
origin
Returns the value of theoriginrecord component.- Returns:
- the value of the
originrecord component
-
faces
Returns the value of thefacesrecord component.- Returns:
- the value of the
facesrecord component
-
_visibility
Returns the value of the_visibilityrecord component.- Returns:
- the value of the
_visibilityrecord component
-