Package org.spout.vanilla.protocol.msg.entity

Examples of org.spout.vanilla.protocol.msg.entity.EntityItemDataMessage


    event.getMessages().add(new EntityTileDataMessage(b.getX(), b.getY(), b.getZ(), event.getAction(), event.getData(), getRepositionManager()));
  }

  @EventHandler
  public void onMapItemUpdate(MapItemUpdateEvent event) {
    event.getMessages().add(new EntityItemDataMessage(VanillaMaterials.MAP, (short) event.getItemData(), event.getData()));
  }
View Full Code Here


    short type = buffer.readShort();
    short id = buffer.readShort();
    int size = buffer.readUnsignedShort();
    byte[] data = new byte[size];
    buffer.readBytes(data);
    return new EntityItemDataMessage(type, id, data);
  }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.protocol.msg.entity.EntityItemDataMessage

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.