All Known Implementing Classes:
ScribeAction.AcknowledgeLoss, ScribeAction.Lose, ScribeAction.Start, ScribeAction.TakeBook, ScribeAction.Win

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 Classes
    Modifier and Type
    Interface
    Description
    static final record 
    Action representing the player acknowledging they lost the game.
    static final record 
    Action representing a loss.
    static final record 
    Action representing the start of a Scribe minigame.
    static final record 
    Action representing the player extracting the target book from the lectern directly through the UI.
    static final record 
    Action representing a victory.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    execute(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

    • execute

      boolean execute(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.
      Parameters:
      player - The player executing the action.
      container - The active container holding the fuel and source.
      gridData - The synchronized data matrix.
      access - The container's level access to mutate blocks.
      Returns:
      true if the action was successfully performed, false otherwise.