Class PlayerAnvilInputEvent

java.lang.Object
net.minestom.server.event.player.PlayerAnvilInputEvent
All Implemented Interfaces:
Event, EntityEvent, EntityInstanceEvent, InstanceEvent, InventoryEvent, PlayerEvent, PlayerInstanceEvent

public class PlayerAnvilInputEvent extends Object implements PlayerInstanceEvent, InventoryEvent
Called every time a Player types a letter in an anvil GUI.
See Also:
  • Constructor Details

    • PlayerAnvilInputEvent

      public PlayerAnvilInputEvent(@NotNull @NotNull Player player, @NotNull @NotNull Inventory inventory, @NotNull @NotNull String input)
  • Method Details

    • getPlayer

      @NotNull public @NotNull Player getPlayer()
      Description copied from interface: PlayerEvent
      Gets the player.
      Specified by:
      getPlayer in interface PlayerEvent
      Returns:
      the player
    • getInput

      @NotNull public @NotNull String getInput()
    • getInventory

      @NotNull public @NotNull Inventory getInventory()
      Description copied from interface: InventoryEvent
      Gets the inventory.
      Specified by:
      getInventory in interface InventoryEvent
      Returns:
      the inventory, null if this is a player's inventory