mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 11:58:06 +01:00
SPIGOT-7403: Add direct API for waxed signs
By: Parker Hawke <hawkeboyz2@hotmail.com>
This commit is contained in:
parent
47eb380e95
commit
c110fcda22
@ -51,26 +51,38 @@ public interface Sign extends TileState, Colorable {
|
||||
|
||||
/**
|
||||
* Marks whether this sign can be edited by players.
|
||||
* <br>
|
||||
* This is a special value, which is not persisted. It should only be set if
|
||||
* a placed sign is manipulated during the BlockPlaceEvent. Behaviour
|
||||
* outside of this event is undefined.
|
||||
*
|
||||
* @return if this sign is currently editable
|
||||
* @deprecated use {@link #isWaxed()} instead
|
||||
*/
|
||||
@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 set 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 use {@link #setWaxed(boolean)} instead
|
||||
*/
|
||||
@Deprecated
|
||||
public void setEditable(boolean editable);
|
||||
|
||||
/**
|
||||
* Gets whether or not this sign has been waxed. If a sign has been waxed, it
|
||||
* cannot be edited by a player.
|
||||
*
|
||||
* @return if this sign is waxed
|
||||
*/
|
||||
public boolean isWaxed();
|
||||
|
||||
/**
|
||||
* Sets whether or not this sign has been waxed. If a sign has been waxed, it
|
||||
* cannot be edited by a player.
|
||||
*
|
||||
* @param waxed if this sign is waxed
|
||||
*/
|
||||
public void setWaxed(boolean waxed);
|
||||
|
||||
/**
|
||||
* Gets whether this sign has glowing text. Only affects the {@link Side#FRONT}.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user