Class PrefabEditorSaveSettingsPage

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.PrefabEditorSaveSettingsPage.PageData>
com.hypixel.hytale.builtin.buildertools.prefabeditor.ui.PrefabEditorSaveSettingsPage

public class PrefabEditorSaveSettingsPage extends InteractiveCustomUIPage<com.hypixel.hytale.builtin.buildertools.prefabeditor.ui.PrefabEditorSaveSettingsPage.PageData>
A UI for configuring and executing prefab save operations in the prefab editor. Allows users to select which prefabs to save and configure save settings.
  • Constructor Details

    • PrefabEditorSaveSettingsPage

      public PrefabEditorSaveSettingsPage(@Nonnull PlayerRef playerRef, @Nonnull PrefabEditSession prefabEditSession)
      Default Constructor for a PrefabEditorSaveSettingsPage instance.
      Parameters:
      playerRef - The affiliated player instance.
      prefabEditSession - The prefab edit session containing loaded prefabs.
    • PrefabEditorSaveSettingsPage

      public PrefabEditorSaveSettingsPage(@Nonnull PlayerRef playerRef, @Nonnull PrefabEditSession prefabEditSession, boolean exitOnSave)
      Constructor for a PrefabEditorSaveSettingsPage instance with configurable exit behavior.
      Parameters:
      playerRef - The affiliated player instance.
      prefabEditSession - The prefab edit session containing loaded prefabs.
      exitOnSave - If true, exits the edit session after a successful save.
  • 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.PrefabEditorSaveSettingsPage.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.PrefabEditorSaveSettingsPage.PageData>
      Parameters:
      ref - The entity reference of the affiliated entity
      store - The entity store for component access
      data - The data event to handle