public class SignChangeEvent extends Object implements BlockEvent, Cancellable
| Constructor and Description |
|---|
SignChangeEvent(Block block,
Player player,
String[] lines) |
| Modifier and Type | Method and Description |
|---|---|
Block |
getBlock() |
String |
getLine(int index) |
String[] |
getLines() |
Player |
getPlayer() |
boolean |
isCancelled()
Whether or not to cancel the event.
|
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
void |
setLine(int index,
String line) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelpublic Player getPlayer()
public String[] getLines()
public String getLine(int index)
public void setLine(int index,
String line)
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true to cancel the event.public Block getBlock()
getBlock in interface BlockEventCopyright © 2017–2019 NukkitX. All rights reserved.