Commits

Parker Hawke authored and md_5 committed 504d9666517
SPIGOT-7403: Add direct API for waxed signs
No tags

src/main/java/org/bukkit/craftbukkit/block/CraftSign.java

Modified
35 35 return front.getLine(index);
36 36 }
37 37
38 38 @Override
39 39 public void setLine(int index, String line) throws IndexOutOfBoundsException {
40 40 front.setLine(index, line);
41 41 }
42 42
43 43 @Override
44 44 public boolean isEditable() {
45 - return !getSnapshot().isWaxed() && getSnapshot().playerWhoMayEdit != null;
45 + return !isWaxed();
46 46 }
47 47
48 48 @Override
49 49 public void setEditable(boolean editable) {
50 - getSnapshot().setWaxed(!editable);
50 + this.setWaxed(!editable);
51 + }
52 +
53 + @Override
54 + public boolean isWaxed() {
55 + return getSnapshot().isWaxed();
56 + }
57 +
58 + @Override
59 + public void setWaxed(boolean waxed) {
60 + getSnapshot().setWaxed(waxed);
51 61 }
52 62
53 63 @Override
54 64 public boolean isGlowingText() {
55 65 return front.isGlowingText();
56 66 }
57 67
58 68 @Override
59 69 public void setGlowingText(boolean glowing) {
60 70 front.setGlowingText(glowing);

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut