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

Examples of org.spout.vanilla.protocol.msg.entity.EntityPropertiesMessage.addProperty()


    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;
  }

  @Override
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.