SPIGOT-7403: Add direct API for waxed signs

By: Parker Hawke <hawkeboyz2@hotmail.com>
This commit is contained in:
CraftBukkit/Spigot 2023-06-23 09:58:59 +10:00
parent f0c9bae0f7
commit e7ebe80de9

View File

@ -42,12 +42,22 @@ public class CraftSign<T extends TileEntitySign> extends CraftBlockEntityState<T
@Override
public boolean isEditable() {
return !getSnapshot().isWaxed() && getSnapshot().playerWhoMayEdit != null;
return !isWaxed();
}
@Override
public void setEditable(boolean editable) {
getSnapshot().setWaxed(!editable);
this.setWaxed(!editable);
}
@Override
public boolean isWaxed() {
return getSnapshot().isWaxed();
}
@Override
public void setWaxed(boolean waxed) {
getSnapshot().setWaxed(waxed);
}
@Override