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