From d9523c36176aa8fb2772411f2b088fb6fd1fccb7 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Mon, 24 Sep 2018 15:00:54 +1000 Subject: [PATCH] SPIGOT-4391: Sign editable API By: md_5 --- .../src/main/java/org/bukkit/block/Sign.java | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) 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 f30666a421..0cbdd39a36 100644 --- a/paper-api/src/main/java/org/bukkit/block/Sign.java +++ b/paper-api/src/main/java/org/bukkit/block/Sign.java @@ -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. + *
+ * 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. + *
+ * 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); }