Class PlayerEditSignEvent

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

public class PlayerEditSignEvent extends Object implements PlayerInstanceEvent, BlockEvent
  • Constructor Details

    • PlayerEditSignEvent

      public PlayerEditSignEvent(Player player, Block block, BlockVec blockPosition, List<String> lines, boolean isFrontText)
  • 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
    • getBlock

      @NotNull public @NotNull Block getBlock()
      Specified by:
      getBlock in interface BlockEvent
    • getBlockPosition

      @NotNull public @NotNull BlockVec getBlockPosition()
      Specified by:
      getBlockPosition in interface BlockEvent
    • getLines

      public List<String> getLines()
      Returns a list of strings representing the lines typed by the player onto the sign. The length is always exactly 4.
    • isFrontText

      public boolean isFrontText()