Contents
Class ConfirmationPage
java.lang.Object
com.hypixel.hytale.server.core.entity.entities.player.pages.CustomUIPage
com.hypixel.hytale.server.core.entity.entities.player.pages.InteractiveCustomUIPage<ConfirmationPage.PageData>
com.hypixel.hytale.server.core.entity.entities.player.pages.ConfirmationPage
Asks the player to confirm an action, then runs the root interaction for the answer on the block
the page was opened from. Any close other than the confirm button counts as a cancel.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic classstatic final recordThe translated text of the page. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConfirmationPage(PlayerRef playerRef, ConfirmationPage.Text text, String successRootId, String failRootId, BlockPosition targetBlock, BlockPosition targetBlockRaw, String worldName) -
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, ConfirmationPage.PageData data) Called to handle a data event for this pagevoidonDismiss(Ref<EntityStore> ref, Store<EntityStore> store) Also runs when the player dies, since the respawn page replaces this one.Methods inherited from class InteractiveCustomUIPage
handleDataEventMethods inherited from class CustomUIPage
getLifetime, setLifetime
-
Field Details
-
LAYOUT
- See Also:
-
-
Constructor Details
-
ConfirmationPage
public ConfirmationPage(@Nonnull PlayerRef playerRef, @Nonnull ConfirmationPage.Text text, @Nonnull String successRootId, @Nullable String failRootId, @Nullable BlockPosition targetBlock, @Nullable BlockPosition targetBlockRaw, @Nonnull String worldName)
-
-
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 ConfirmationPage.PageData data) Description copied from class:InteractiveCustomUIPageCalled to handle a data event for this page- Overrides:
handleDataEventin classInteractiveCustomUIPage<ConfirmationPage.PageData>- Parameters:
ref- The entity reference of the affiliated entitystore- The entity store for component accessdata- The data event to handle
-
onDismiss
Also runs when the player dies, since the respawn page replaces this one.- Overrides:
onDismissin classCustomUIPage
-