Contents
Class WarpListPage
java.lang.Object
com.hypixel.hytale.server.core.entity.entities.player.pages.CustomUIPage
com.hypixel.hytale.server.core.entity.entities.player.pages.InteractiveCustomUIPage<WarpListPage.WarpListPageEventData>
com.hypixel.hytale.builtin.teleport.WarpListPage
Warp List Page
A custom UI page that displays a searchable list of available warps and allows players to teleport to them.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classWarp List Page Event Data -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuild(Ref<EntityStore> ref, UICommandBuilder commandBuilder, UIEventBuilder eventBuilder, Store<EntityStore> store) Called to build this pagevoidhandleDataEvent(Ref<EntityStore> ref, Store<EntityStore> store, WarpListPage.WarpListPageEventData eventData) Called to handle a data event for this pageMethods inherited from class InteractiveCustomUIPage
handleDataEventMethods inherited from class CustomUIPage
getLifetime, onDismiss, setLifetime
-
Constructor Details
-
WarpListPage
public WarpListPage(@Nonnull PlayerRef playerRef, Map<String, Warp> warps, Consumer<String> callback) Default Constructor for aWarpListPageinstance.- Parameters:
playerRef- The player reference for the page owner.warps- A map of all available warps.callback- The callback function to invoke when a warp is selected.
-
-
Method Details
-
build
public void build(@Nonnull Ref<EntityStore> ref, @Nonnull UICommandBuilder commandBuilder, @Nonnull UIEventBuilder eventBuilder, @Nonnull Store<EntityStore> store) Description copied from class:CustomUIPageCalled to build this page- Specified by:
buildin classCustomUIPage- Parameters:
ref- The entity ref of the affiliated playercommandBuilder- The command builder used while building this UIeventBuilder- The event builder used while building this UIstore- The entity store for component access
-
handleDataEvent
public void handleDataEvent(@Nonnull Ref<EntityStore> ref, @Nonnull Store<EntityStore> store, @Nonnull WarpListPage.WarpListPageEventData eventData) Description copied from class:InteractiveCustomUIPageCalled to handle a data event for this page- Overrides:
handleDataEventin classInteractiveCustomUIPage<WarpListPage.WarpListPageEventData>- Parameters:
ref- The entity reference of the affiliated entitystore- The entity store for component accesseventData- The data event to handle
-