Contents
Class AugmentUpgradePage
java.lang.Object
com.hypixel.hytale.server.core.entity.entities.player.pages.CustomUIPage
com.hypixel.hytale.server.core.entity.entities.player.pages.InteractiveCustomUIPage<AugmentUpgradePage.PageData>
com.hypixel.hytale.builtin.augmentblocks.ui.AugmentUpgradePage
Generic repair/upgrade UI for an
AugmentBlock. Shows the device name, its broken or repaired state, and the
next level's materials as have/need slots. The repair button stays disabled until the next level's
RequiredAugmentTags are granted nearby and the player can pay. A repaired device shows a confirmation
line and a Close button instead. The upgrade itself runs through AugmentUpgrades, shared with bespoke
device pages.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic class -
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, AugmentUpgradePage.PageData data) Called to handle a data event for this pagestatic MessagestatusOf(AugmentUpgrades.Result result, int reachedLevel) Maps an upgrade outcome to the shared augmentable status line, or null when there is nothing to say.static AugmentUpgradePagetryCreate(PlayerRef playerRef, Ref<ChunkStore> blockRef) Methods inherited from class InteractiveCustomUIPage
handleDataEventMethods inherited from class CustomUIPage
getLifetime, onDismiss, setLifetime
-
Method Details
-
tryCreate
@Nullable public static AugmentUpgradePage tryCreate(@Nonnull PlayerRef playerRef, @Nonnull Ref<ChunkStore> blockRef) -
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
-
statusOf
Maps an upgrade outcome to the shared augmentable status line, or null when there is nothing to say. -
handleDataEvent
public void handleDataEvent(@Nonnull Ref<EntityStore> ref, @Nonnull Store<EntityStore> store, @Nonnull AugmentUpgradePage.PageData data) Description copied from class:InteractiveCustomUIPageCalled to handle a data event for this page- Overrides:
handleDataEventin classInteractiveCustomUIPage<AugmentUpgradePage.PageData>- Parameters:
ref- The entity reference of the affiliated entitystore- The entity store for component accessdata- The data event to handle
-