mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 03:22:19 +01:00
SPIGOT-4391: Sign editable API
By: md_5 <git@md-5.net>
This commit is contained in:
parent
f2aaef5c07
commit
d9523c3617
1 changed files with 26 additions and 0 deletions
|
@ -34,4 +34,30 @@ public interface Sign extends BlockState {
|
|||
* @throws IndexOutOfBoundsException If the index is out of the range 0..3
|
||||
*/
|
||||
public void setLine(int index, String line) throws IndexOutOfBoundsException;
|
||||
|
||||
/**
|
||||
* Marks whether this sign can be edited by players.
|
||||
* <br>
|
||||
* This is a special value, which is not persisted. It should only be if a
|
||||
* placed sign is manipulated during the BlockPlaceEvent. Behaviour outside
|
||||
* of this event is undefined.
|
||||
*
|
||||
* @return if this sign is currently editable
|
||||
* @deprecated draft API
|
||||
*/
|
||||
@Deprecated
|
||||
public boolean isEditable();
|
||||
|
||||
/**
|
||||
* Marks whether this sign can be edited by players.
|
||||
* <br>
|
||||
* This is a special value, which is not persisted. It should only be if a
|
||||
* placed sign is manipulated during the BlockPlaceEvent. Behaviour outside
|
||||
* of this event is undefined.
|
||||
*
|
||||
* @param editable if this sign is currently editable
|
||||
* @deprecated draft API
|
||||
*/
|
||||
@Deprecated
|
||||
public void setEditable(boolean editable);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue