Contents
Class PrefabTeleportPage
java.lang.Object
com.hypixel.hytale.server.core.entity.entities.player.pages.CustomUIPage
com.hypixel.hytale.server.core.entity.entities.player.pages.InteractiveCustomUIPage<PrefabTeleportPage.PageData>
com.hypixel.hytale.builtin.buildertools.prefabeditor.ui.PrefabTeleportPage
UI page for teleporting to loaded prefabs in a prefab edit session.
Lists all currently loaded prefabs and allows the player to teleport to the top of the prefab.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classEvent data codec for the prefab teleport page. -
Constructor Summary
ConstructorsConstructorDescriptionPrefabTeleportPage(PlayerRef playerRef, PrefabEditSession prefabEditSession) Default Constructor for aPrefabTeleportPageinstance. -
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, PrefabTeleportPage.PageData data) Called to handle a data event for this pageMethods inherited from class InteractiveCustomUIPage
handleDataEventMethods inherited from class CustomUIPage
getLifetime, onDismiss, setLifetime
-
Constructor Details
-
PrefabTeleportPage
public PrefabTeleportPage(@Nonnull PlayerRef playerRef, @Nonnull PrefabEditSession prefabEditSession) Default Constructor for aPrefabTeleportPageinstance.- Parameters:
playerRef- The affiliated player instance.prefabEditSession- The prefab edit session containing loaded prefabs.
-
-
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 PrefabTeleportPage.PageData data) Description copied from class:InteractiveCustomUIPageCalled to handle a data event for this page- Overrides:
handleDataEventin classInteractiveCustomUIPage<PrefabTeleportPage.PageData>- Parameters:
ref- The entity reference of the affiliated entitystore- The entity store for component accessdata- The data event to handle
-