Class TeleportHistory
java.lang.Object
com.hypixel.hytale.builtin.teleport.components.TeleportHistory
- All Implemented Interfaces:
Component<EntityStore>,Cloneable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Deque<TeleportHistory.Waypoint> private final Deque<TeleportHistory.Waypoint> private static final intprivate static final Messageprivate static final Messageprivate static final Messageprivate static final Messageprivate static final Messageprivate static final MessageFields inherited from interface com.hypixel.hytale.component.Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidback(Ref<EntityStore> ref, int count) clone()voidforward(Ref<EntityStore> ref, int count) intstatic ComponentType<EntityStore, TeleportHistory> intprivate static voidgo(Store<EntityStore> store, Ref<EntityStore> ref, Deque<TeleportHistory.Waypoint> from, Deque<TeleportHistory.Waypoint> to, int count, boolean isForward) toString()Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.Component
cloneSerializable
-
Field Details
-
MAX_TELEPORT_HISTORY
private static final int MAX_TELEPORT_HISTORY- See Also:
-
MESSAGE_COMMANDS_TELEPORT_NOT_FURTHER
-
MESSAGE_COMMANDS_TELEPORT_WORLD_NOT_LOADED
-
MESSAGE_COMMANDS_TELEPORT_TELEPORTED_FORWARD_TO_WAYPOINT
-
MESSAGE_COMMANDS_TELEPORT_TELEPORTED_BACK_TO_WAYPOINT
-
MESSAGE_COMMANDS_TELEPORT_TELEPORTED_FORWARD_TO_COORDINATES
-
MESSAGE_COMMANDS_TELEPORT_TELEPORTED_BACK_TO_COORDINATES
-
back
-
forward
-
-
Constructor Details
-
TeleportHistory
public TeleportHistory()
-
-
Method Details
-
getComponentType
-
forward
-
back
-
getForwardSize
public int getForwardSize() -
getBackSize
public int getBackSize() -
go
private static void go(@Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> ref, @Nonnull Deque<TeleportHistory.Waypoint> from, @Nonnull Deque<TeleportHistory.Waypoint> to, int count, boolean isForward) -
append
-
toString
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Overrides:
clonein classObject
-