Package org.spout.vanilla.protocol.msg.world.block

Examples of org.spout.vanilla.protocol.msg.world.block.BlockActionMessage


  public void onBlockAction(BlockActionEvent event) {
    int id = VanillaMaterials.getMinecraftId(event.getMaterial());
    if (id == -1) {
      event.getMessages().add(null);
    } else {
      event.getMessages().add(new BlockActionMessage(event.getBlock(), (short) id, event.getData1(), event.getData2(), getRepositionManager()));
    }
  }
View Full Code Here


    int y = buffer.readUnsignedShort();
    int z = buffer.readInt();
    byte firstByte = buffer.readByte();
    byte secondByte = buffer.readByte();
    short blockId = buffer.readShort();
    return new BlockActionMessage(x, y, z, blockId, firstByte, secondByte, NullRepositionManager.getInstance());
  }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.protocol.msg.world.block.BlockActionMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.