Interface ScribeAction
- All Known Implementing Classes:
ScribeAction.AcknowledgeLoss,ScribeAction.Lose,ScribeAction.Start,ScribeAction.TakeBook,ScribeAction.Win
public sealed interface ScribeAction
permits ScribeAction.Start, ScribeAction.Win, ScribeAction.Lose, ScribeAction.AcknowledgeLoss, ScribeAction.TakeBook
A sealed interface defining the concrete mutation operations that can be performed
by the Scribe Minigame upon the player's inventory and the world.
Acts as the Command Pattern interface for menu interactions. Each valid implementation manages its own specific logic for modifying items, deducting resource costs, playing sounds, and validating side-effects.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordAction representing the player acknowledging they lost the game.static final recordAction representing a loss.static final recordAction representing the start of a Scribe minigame.static final recordAction representing the player extracting the target book from the lectern directly through the UI.static final recordAction representing a victory. -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute(net.minecraft.world.entity.player.Player player, net.minecraft.world.Container container, ScribeGridData gridData, net.minecraft.world.inventory.ContainerLevelAccess access) Executes the action, modifying the container and the player's state.
-
Method Details