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

public abstract class InteractiveCustomUIPage<T> extends CustomUIPage
A custom UI page that supports interactivity
  • Constructor Details

    • InteractiveCustomUIPage

      public InteractiveCustomUIPage(@Nonnull PlayerRef playerRef, @Nonnull CustomPageLifetime lifetime, @Nonnull BuilderCodec<T> eventDataCodec)
      Default Constructor for a InteractiveCustomUIPage instance
      Parameters:
      playerRef - The affiliated player instance
      lifetime - The lifetime behaviour of this page
      eventDataCodec - 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 entity
      store - The entity store for component access
      data - The data event to handle
    • handleDataEvent

      public void handleDataEvent(@Nonnull Ref<EntityStore> ref, @Nonnull Store<EntityStore> store, String rawData)
      Description copied from class: CustomUIPage
      Called to handle a data event using the given raw data
      Overrides:
      handleDataEvent in class CustomUIPage
      Parameters:
      ref - The entity reference of the affiliated entity
      store - The entity store for component access
      rawData - The raw data to be processed