Contents
Record Class LocationContext
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.adventure.worldevents.context.LocationContext
- All Implemented Interfaces:
Context
public record LocationContext(@Nonnull org.joml.Vector3i location, @Nullable Rotation3f rotation)
extends Record
implements Context
-
Field Summary
FieldsFields inherited from interface Context
TYPE_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionLocationContext(org.joml.Vector3i location) LocationContext(org.joml.Vector3i location, Rotation3f rotation) Creates an instance of aLocationContextrecord class. -
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.org.joml.Vector3ilocation()Returns the value of thelocationrecord component.rotation()Returns the value of therotationrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
ID
- See Also:
-
CODEC
-
-
Constructor Details
-
LocationContext
public LocationContext(@Nonnull org.joml.Vector3i location) -
LocationContext
Creates an instance of aLocationContextrecord class.- Parameters:
location- the value for thelocationrecord componentrotation- the value for therotationrecord component
-
-
Method Details
-
rotationOrZero
-
toString
-
hashCode
-
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). -
location
@Nonnull public org.joml.Vector3i location()Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
rotation
Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-