Contents
Class InteractiveCustomUIPage<T>
java.lang.Object
com.hypixel.hytale.server.core.entity.entities.player.pages.CustomUIPage
com.hypixel.hytale.server.core.entity.entities.player.pages.InteractiveCustomUIPage<T>
- Type Parameters:
T- The associated interactive event type
- Direct Known Subclasses:
AbilityBenchIntroPage, AugmentUpgradePage, BarterPage, BiomeEditorPage, BlockSpawnerSettingsPage, ChangeModelPage, ChoiceBasePage, ChunkTintCommand.TintChunkPage, CommandListPage, ConfigureInstanceBlockPage, ConfirmationPage, DialogPage, EntitySpawnPage, GoblinLabConsolePage, ImageImportPage, InstanceListPage, LaunchPad.LaunchPadSettingsPage, MemoriesPage, MemoriesUnlockedPage, ObjImportPage, ParticleSpawnPage, PlaySoundPage, PluginListPage, PointInspectorPage, PrefabEditorExitConfirmPage, PrefabEditorLoadOptionsPage, PrefabEditorLoadSettingsPage, PrefabEditorSaveSettingsPage, PrefabPage, PrefabSavePage, PrefabSpawnerBlock.PrefabSpawnerSettingsPage, PrefabTeleportPage, RespawnPage, RespawnPointPage, ScriptedBrushPage, TeleporterSettingsPage, TriggerVolumeInspectorPage, UIGalleryPage, WarpListPage, WorldEventPanelPage
A custom UI page that supports interactivity
-
Constructor Summary
ConstructorsConstructorDescriptionInteractiveCustomUIPage(PlayerRef playerRef, CustomPageLifetime lifetime, BuilderCodec<T> eventDataCodec) Default Constructor for aInteractiveCustomUIPageinstance -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleDataEvent(Ref<EntityStore> ref, Store<EntityStore> store, String rawData) Called to handle a data event using the given raw datavoidhandleDataEvent(Ref<EntityStore> ref, Store<EntityStore> store, T data) Called to handle a data event for this pageMethods inherited from class CustomUIPage
build, getLifetime, onDismiss, setLifetime
-
Constructor Details
-
InteractiveCustomUIPage
public InteractiveCustomUIPage(@Nonnull PlayerRef playerRef, @Nonnull CustomPageLifetime lifetime, @Nonnull BuilderCodec<T> eventDataCodec) Default Constructor for aInteractiveCustomUIPageinstance- Parameters:
playerRef- The affiliated player instancelifetime- The lifetime behaviour of this pageeventDataCodec- The affiliated event data codec
-
-
Method Details
-
handleDataEvent
public void handleDataEvent(@Nonnull Ref<EntityStore> ref, @Nonnull Store<EntityStore> store, @Nonnull T data) Called to handle a data event for this page- Parameters:
ref- The entity reference of the affiliated entitystore- The entity store for component accessdata- The data event to handle
-
handleDataEvent
public void handleDataEvent(@Nonnull Ref<EntityStore> ref, @Nonnull Store<EntityStore> store, String rawData) Description copied from class:CustomUIPageCalled to handle a data event using the given raw data- Overrides:
handleDataEventin classCustomUIPage- Parameters:
ref- The entity reference of the affiliated entitystore- The entity store for component accessrawData- The raw data to be processed
-