blob: 38a844fdb2c6bb83a3bf8274529afed8442d1316 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Jake Potrebic <jake.m.potrebic@gmail.com>
Date: Thu, 8 Jun 2023 23:22:31 -0700
Subject: [PATCH] Add API for waxed signs
diff --git a/src/main/java/org/bukkit/block/Sign.java b/src/main/java/org/bukkit/block/Sign.java
index abefc7a96528c52434bd7d4eef3be63c5e31e770..dd4d8f24e684a9c3cb1e41e8d0bf615111a17ba3 100644
--- a/src/main/java/org/bukkit/block/Sign.java
+++ b/src/main/java/org/bukkit/block/Sign.java
@@ -95,7 +95,9 @@ public interface Sign extends TileState, Colorable {
* outside of this event is undefined.
*
* @return if this sign is currently editable
+ * @deprecated use {@link #isWaxed()}
*/
+ @Deprecated // Paper
public boolean isEditable();
/**
@@ -106,9 +108,27 @@ public interface Sign extends TileState, Colorable {
* outside of this event is undefined.
*
* @param editable if this sign is currently editable
+ * @deprecated use {@link #setWaxed(boolean)}
*/
+ @Deprecated // Paper
public void setEditable(boolean editable);
+ // Paper start
+ /**
+ * Gets whether the sign has been waxed and therefore prevents editing.
+ *
+ * @return true if waxed
+ */
+ boolean isWaxed();
+
+ /**
+ * Sets whether the sign is waxed.
+ *
+ * @param waxed true to wax and therefore prevent editing
+ */
+ void setWaxed(boolean waxed);
+ // Paper end
+
/**
* Gets whether this sign has glowing text. Only affects the {@link Side#FRONT}.
*
|