Contents
Record Class WorldContext
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.adventure.worldevents.context.WorldContext
- All Implemented Interfaces:
Context
-
Field Summary
FieldsFields inherited from interface Context
TYPE_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionWorldContext(UUID worldUUID) Creates an instance of aWorldContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getWorld()final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of theworldUUIDrecord component.
-
Field Details
-
ID
- See Also:
-
CODEC
-
-
Constructor Details
-
WorldContext
Creates an instance of aWorldContextrecord class.- Parameters:
worldUUID- the value for theworldUUIDrecord component
-
-
Method Details
-
getWorld
-
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). -
worldUUID
Returns the value of theworldUUIDrecord component.- Returns:
- the value of the
worldUUIDrecord component
-