Class PrefabEditorLoadOptionsPage

java.lang.Object
com.hypixel.hytale.server.core.entity.entities.player.pages.CustomUIPage
com.hypixel.hytale.server.core.entity.entities.player.pages.InteractiveCustomUIPage<com.hypixel.hytale.builtin.buildertools.prefabeditor.ui.PrefabEditorLoadOptionsPage.PageData>
com.hypixel.hytale.builtin.buildertools.prefabeditor.ui.PrefabEditorLoadOptionsPage

public class PrefabEditorLoadOptionsPage extends InteractiveCustomUIPage<com.hypixel.hytale.builtin.buildertools.prefabeditor.ui.PrefabEditorLoadOptionsPage.PageData>
A confirmation UI page shown when a player tries to exit the prefab editor with unsaved changes. Lists all modified prefabs and asks for confirmation before discarding changes.
  • Constructor Details

    • PrefabEditorLoadOptionsPage

      public PrefabEditorLoadOptionsPage(@Nonnull PlayerRef playerRef, @Nonnull World world)
      Default Constructor for a PrefabEditorLoadOptionsPage instance.
      Parameters:
      playerRef - The affiliated player instance.
      world - The world the player is in.
  • Method Details

    • build

      public void build(@Nonnull Ref<EntityStore> ref, @Nonnull UICommandBuilder commandBuilder, @Nonnull UIEventBuilder eventBuilder, @Nonnull Store<EntityStore> store)
      Description copied from class: CustomUIPage
      Called to build this page
      Specified by:
      build in class CustomUIPage
      Parameters:
      ref - The entity ref of the affiliated player
      commandBuilder - The command builder used while building this UI
      eventBuilder - The event builder used while building this UI
      store - The entity store for component access
    • handleDataEvent

      public void handleDataEvent(@Nonnull Ref<EntityStore> ref, @Nonnull Store<EntityStore> store, @Nonnull com.hypixel.hytale.builtin.buildertools.prefabeditor.ui.PrefabEditorLoadOptionsPage.PageData data)
      Description copied from class: InteractiveCustomUIPage
      Called to handle a data event for this page
      Overrides:
      handleDataEvent in class InteractiveCustomUIPage<com.hypixel.hytale.builtin.buildertools.prefabeditor.ui.PrefabEditorLoadOptionsPage.PageData>
      Parameters:
      ref - The entity reference of the affiliated entity
      store - The entity store for component access
      data - The data event to handle