Package kr.toxicity.model.api.data.raw
Record Class ModelElement.Locator
java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.raw.ModelElement.Locator
- Record Components:
name-uuid-
- All Implemented Interfaces:
ModelElement
- Enclosing interface:
ModelElement
public static record ModelElement.Locator(@NotNull String name, @NotNull String uuid, @Nullable Float3 position)
extends Record
implements ModelElement
A raw model's locator
-
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 TypeMethodDescriptionfinal 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 Float3position()Gets 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.Methods 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
-
Method Details
-
type
Description copied from interface:ModelElementGets type- Specified by:
typein interfaceModelElement- Returns:
- type
-
position
Gets position- Returns:
- position
-
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. 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.- Specified by:
uuidin interfaceModelElement- Returns:
- the value of the
uuidrecord component
-