summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-09-24 15:00:54 +1000
committermd_5 <git@md-5.net>2018-09-24 15:00:54 +1000
commit6f57bf95de3ab77effbe58c103ecf471fdeac581 (patch)
tree7d93ca70f06020965ee51180de323c14f214e017 /src/main
parent4db9e3dc04dc7f53b888d37733b680de86c1be84 (diff)
downloadbukkit-6f57bf95de3ab77effbe58c103ecf471fdeac581.tar
bukkit-6f57bf95de3ab77effbe58c103ecf471fdeac581.tar.gz
bukkit-6f57bf95de3ab77effbe58c103ecf471fdeac581.tar.lz
bukkit-6f57bf95de3ab77effbe58c103ecf471fdeac581.tar.xz
bukkit-6f57bf95de3ab77effbe58c103ecf471fdeac581.zip
SPIGOT-4391: Sign editable API
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/bukkit/block/Sign.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/block/Sign.java b/src/main/java/org/bukkit/block/Sign.java
index f30666a4..0cbdd39a 100644
--- a/src/main/java/org/bukkit/block/Sign.java
+++ b/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.
+ * <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);
}