public class SignChangeEvent extends BlockEvent implements Cancellable
Constructor and Description |
---|
SignChangeEvent(Block block,
Player editor,
String... contents) |
Modifier and Type | Method and Description |
---|---|
void |
cancel(boolean cancelled) |
String[] |
contents()
Returns the contents of the Sign
|
Player |
editor()
Returns the Player who edited the Sign
|
boolean |
isIgnored() |
String |
line(int i)
Returns the text of the specified line
|
void |
setContents(String... contents)
Sets the contents of the Sign
|
String |
setLine(int i,
String text)
Sets the value of a line
|
block
public SignChangeEvent(Block block, Player editor, String... contents)
public boolean isIgnored()
isIgnored
in interface Cancellable
public void cancel(boolean cancelled)
cancel
in interface Cancellable
cancelled
- set the cancellation state of the eventpublic String[] contents()
public void setContents(String... contents)
contents
- String[] contents of the Signpublic String line(int i)
i
- line of the Signpublic String setLine(int i, String text)
i
- line of the Signtext
- String text to set the line asCopyright © 2016. All rights reserved.