Contents
Class AugmentUpgrades
java.lang.Object
com.hypixel.hytale.builtin.augmentblocks.AugmentUpgrades
The augment upgrade transaction, shared by every UI that offers an upgrade button (the generic
AugmentUpgradePage and bespoke device pages): requirement
re-check, cost removal, level commit, state application or block replacement, and progression recording.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanrequirementsMet(Ref<ChunkStore> blockRef, AugmentBlock block, AugmentBlockUpgradeLevel next) Whether the next level'sRequiredAugmentTagsare granted around the block.static AugmentUpgrades.ResulttryUpgrade(Ref<EntityStore> ref, Store<EntityStore> store, Ref<ChunkStore> blockRef, AugmentBlock block) Runs the full upgrade transaction for the block's next level.
-
Method Details
-
requirementsMet
public static boolean requirementsMet(@Nonnull Ref<ChunkStore> blockRef, @Nonnull AugmentBlock block, @Nonnull AugmentBlockUpgradeLevel next) Whether the next level'sRequiredAugmentTagsare granted around the block. -
tryUpgrade
@Nonnull public static AugmentUpgrades.Result tryUpgrade(@Nonnull Ref<EntityStore> ref, @Nonnull Store<EntityStore> store, @Nonnull Ref<ChunkStore> blockRef, @Nonnull AugmentBlock block) Runs the full upgrade transaction for the block's next level.
-