Contents
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>
Warp Component
A component used to flag an entity as a warp point marker.
-
Field Summary
Fields inherited from interface 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 interface Component
cloneSerializable
-
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>- Returns:
- a clone instance of the original component instance.
-
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). -
warp
Returns the value of thewarprecord component.- Returns:
- the value of the
warprecord component
-