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

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


  @Override
  public EntityPropertiesMessage decode(ByteBuf buffer) throws IOException {
    int entityID = buffer.readInt();
    int amount = buffer.readInt();
    System.out.println(amount);
    EntityPropertiesMessage msg = new EntityPropertiesMessage(entityID);
    Map<EntityPropertiesCodec, Double> map = new HashMap<EntityPropertiesCodec, Double>();
    for (int i = 1; i <= amount; i++) {
      msg.addProperty(EntityPropertiesMessage.EntityProperties.getByName(ByteBufUtils.readString(buffer)), buffer.readDouble());
    }
    return msg;
  }
View Full Code Here

TOP

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

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.