Record Class TeleportPlugin.WarpComponent
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.teleport.TeleportPlugin.WarpComponent
- All Implemented Interfaces:
Component<EntityStore>,Cloneable
- Enclosing class:
TeleportPlugin
public static record TeleportPlugin.WarpComponent(Warp warp)
extends Record
implements Component<EntityStore>
-
Field Summary
FieldsFields inherited from interface com.hypixel.hytale.component.Component
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionWarpComponent(Warp warp) Creates an instance of aWarpComponentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclone()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.warp()Returns the value of thewarprecord component.Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.Component
cloneSerializable
-
Field Details
-
warp
The field for thewarprecord component.
-
-
Constructor Details
-
WarpComponent
Creates an instance of aWarpComponentrecord class.- Parameters:
warp- the value for thewarprecord component
-
-
Method Details
-
getComponentType
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Overrides:
clonein classObject
-
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). -
warp
Returns the value of thewarprecord component.- Returns:
- the value of the
warprecord component
-