Record Class BlueprintElement.Locator
java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.blueprint.BlueprintElement.Locator
- Record Components:
uuid- the UUID of the locatorname- the name of the locatororigin- the position of the locator
- All Implemented Interfaces:
BlueprintElement,BlueprintElement.Bone
- Enclosing interface:
BlueprintElement
public static record BlueprintElement.Locator(@NotNull UUID uuid, @NotNull BoneName name, @NotNull Float3 origin)
extends Record
implements BlueprintElement.Bone
Represents a locator element, used as a named attachment point.
- Since:
- 1.15.2
-
Nested Class Summary
Nested classes/interfaces inherited from interface kr.toxicity.model.api.data.blueprint.BlueprintElement
BlueprintElement.Bone, BlueprintElement.Camera, BlueprintElement.Cube, BlueprintElement.Group, BlueprintElement.Locator, BlueprintElement.NullObject -
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 BoneNamename()Returns the value of thenamerecord component.@NotNull Float3origin()Returns the origin with inverted X and Z axes.final StringtoString()Returns a string representation of this record class.@NotNull UUIDuuid()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.blueprint.BlueprintElement
rotation, visibility
-
Constructor Details
-
Method Details
-
origin
Returns the origin with inverted X and Z axes.- Specified by:
originin interfaceBlueprintElement.Bone- Returns:
- the inverted origin
- Since:
- 1.15.2
-
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). -
uuid
Returns the value of theuuidrecord component.- Specified by:
uuidin interfaceBlueprintElement.Bone- Returns:
- the value of the
uuidrecord component
-
name
Returns the value of thenamerecord component.- Specified by:
namein interfaceBlueprintElement.Bone- Returns:
- the value of the
namerecord component
-