Contents
Class WorldEventPanelPage
java.lang.Object
com.hypixel.hytale.server.core.entity.entities.player.pages.CustomUIPage
com.hypixel.hytale.server.core.entity.entities.player.pages.InteractiveCustomUIPage<WorldEventPanelPage.PageData>
com.hypixel.hytale.builtin.adventure.worldevents.ui.WorldEventPanelPage
- Direct Known Subclasses:
WorldEventActivePage, WorldEventAssetsPage, WorldEventConfigPage, WorldEventGlobalPage, WorldEventInspectorPage, WorldEventStoragePage
public abstract class WorldEventPanelPage
extends InteractiveCustomUIPage<WorldEventPanelPage.PageData>
Shared shell for the world-event admin panel. Subclasses fill the content pane for one tab.
The panel is read-mostly. It reads the world-event state of the world the player is in, and it
runs the same operations as the /worldevent commands. All page callbacks run on the world
thread of that world, so direct ECS access is safe.
Text values. A Text or TooltipText property is a plain string on the
client. Only two forms decode into it:
- a Java
String, and - a
Message.translation(String)whose parameters are all strings, numbers, or booleans.
Message.raw(String) and a Message used as a parameter do not decode. The first
disconnects the client, the second drops the parameter. Pass a String for raw data, and
give each variant of a sentence its own message id.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEvery action the panel can send.static classstatic enumNavigation tabs, in the order they appear in the rail. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidbuild(Ref<EntityStore> ref, UICommandBuilder cmd, UIEventBuilder evt, Store<EntityStore> store) Called to build this pagevoidhandleDataEvent(Ref<EntityStore> ref, Store<EntityStore> store, WorldEventPanelPage.PageData data) Called to handle a data event for this pagevoidonDismiss(Ref<EntityStore> ref, Store<EntityStore> store) Called when this page is dismissedMethods inherited from class InteractiveCustomUIPage
handleDataEventMethods inherited from class CustomUIPage
getLifetime, setLifetime
-
Method Details
-
build
public final void build(@Nonnull Ref<EntityStore> ref, @Nonnull UICommandBuilder cmd, @Nonnull UIEventBuilder evt, @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 playercmd- The command builder used while building this UIevt- The event builder used while building this UIstore- The entity store for component access
-
onDismiss
Description copied from class:CustomUIPageCalled when this page is dismissed- Overrides:
onDismissin classCustomUIPage
-
handleDataEvent
public void handleDataEvent(@Nonnull Ref<EntityStore> ref, @Nonnull Store<EntityStore> store, @Nonnull WorldEventPanelPage.PageData data) Description copied from class:InteractiveCustomUIPageCalled to handle a data event for this page- Overrides:
handleDataEventin classInteractiveCustomUIPage<WorldEventPanelPage.PageData>- Parameters:
ref- The entity reference of the affiliated entitystore- The entity store for component accessdata- The data event to handle
-