public void setOpened(boolean opened) { this.opened = opened; byte data = opened ? (byte) 1 : 0; VanillaNetworkSynchronizer.playBlockAction(getBlock(), (byte) 1, data); }
private void update() { Block block = getBlock(); VanillaNetworkSynchronizer.sendPacket( dirty.toArray(new Player[dirty.size()]), new UpdateSignMessage(block.getX(), block.getY(), block.getZ(), text)); }