Contents
Class CustomUIPage
java.lang.Object
com.hypixel.hytale.server.core.entity.entities.player.pages.CustomUIPage
- Direct Known Subclasses:
AugmentMessagePage, BasicCustomUIPage, BlockLorePage, InteractiveCustomUIPage
Represents a UI page that the player has opened
-
Constructor Summary
ConstructorsConstructorDescriptionCustomUIPage(PlayerRef playerRef, CustomPageLifetime lifetime) Default Constructor for aCustomUIPageinstance -
Method Summary
Modifier and TypeMethodDescriptionabstract voidbuild(Ref<EntityStore> ref, UICommandBuilder commandBuilder, UIEventBuilder eventBuilder, Store<EntityStore> store) Called to build this pagevoidhandleDataEvent(Ref<EntityStore> ref, Store<EntityStore> store, String rawData) Called to handle a data event using the given raw datavoidonDismiss(Ref<EntityStore> ref, Store<EntityStore> store) Called when this page is dismissedvoidsetLifetime(CustomPageLifetime lifetime) Called to set the lifetime of this page
-
Constructor Details
-
CustomUIPage
Default Constructor for aCustomUIPageinstance- Parameters:
playerRef- ThePlayerRefinstance of the associated playerlifetime- The lifetime behaviour of the page
-
-
Method Details
-
setLifetime
Called to set the lifetime of this page- Parameters:
lifetime- The lifetime to set
-
getLifetime
- Returns:
- the lifetime of this page
-
handleDataEvent
public void handleDataEvent(@Nonnull Ref<EntityStore> ref, @Nonnull Store<EntityStore> store, String rawData) Called to handle a data event using the given raw data- Parameters:
ref- The entity reference of the affiliated entitystore- The entity store for component accessrawData- The raw data to be processed
-
build
public abstract void build(@Nonnull Ref<EntityStore> ref, @Nonnull UICommandBuilder commandBuilder, @Nonnull UIEventBuilder eventBuilder, @Nonnull Store<EntityStore> store) Called to build this page- 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
-
onDismiss
Called when this page is dismissed
-