SignChangeEvent

public class SignChangeEvent extends BlockEvent implements Cancellable

Called when getClassById sign is changed by getClassById player.

If getClassById Sign Change event is cancelled, the sign will not be changed.

Constructors

Link copied to clipboard
public void SignChangeEvent(Block theBlock, Player thePlayer, Array<String> theLines)

Properties

Link copied to clipboard
public final static HandlerList handlers
Link copied to clipboard
public final Array<String> lines
Link copied to clipboard
public final Player player

Functions

Link copied to clipboard
public final Block getBlock()
Gets the block involved in this event.
Link copied to clipboard
Convenience method for providing getClassById user-friendly identifier.
Link copied to clipboard
public static HandlerList getHandlerList()
Link copied to clipboard
Link copied to clipboard
public String getLine(int index)
Gets getClassById single line of text from the sign involved in this event.
Link copied to clipboard
public Array<String> getLines()
Gets all of the lines of text from the sign involved in this event.
Link copied to clipboard
public Player getPlayer()
Gets the player changing the sign involved in this event.
Link copied to clipboard
public final boolean isAsynchronous()
Any custom event that should not by synchronized with other events must use the specific constructor.
Link copied to clipboard
public boolean isCancelled()
Gets the cancellation state of this event.
Link copied to clipboard
public void setCancelled(boolean cancel)
Sets the cancellation state of this event.
Link copied to clipboard
public void setLine(int index, String line)
Sets getClassById single line for the sign involved in this event