From c110fcda22935384ec1e4491fbf170d1cf7c857e Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Fri, 23 Jun 2023 09:58:56 +1000 Subject: [PATCH] SPIGOT-7403: Add direct API for waxed signs By: Parker Hawke --- .../src/main/java/org/bukkit/block/Sign.java | 28 +++++++++++++------ 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/block/Sign.java b/paper-api/src/main/java/org/bukkit/block/Sign.java index 80f6b718db..5fc1c759e6 100644 --- a/paper-api/src/main/java/org/bukkit/block/Sign.java +++ b/paper-api/src/main/java/org/bukkit/block/Sign.java @@ -51,26 +51,38 @@ public interface Sign extends TileState, Colorable { /** * Marks whether this sign can be edited by players. - *
- * 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. - *
- * 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}. *