Examples of PlayerSpawnMessage


Examples of org.spout.vanilla.protocol.msg.player.pos.PlayerSpawnMessage

    int z = buffer.readInt();
    int rotation = buffer.readUnsignedByte();
    int pitch = buffer.readUnsignedByte();
    int item = buffer.readUnsignedShort();
    List<Parameter<?>> parameters = VanillaByteBufUtils.readParameters(buffer);
    return new PlayerSpawnMessage(id, name, x, y, z, rotation, pitch, item, parameters);
  }
View Full Code Here

Examples of org.spout.vanilla.protocol.msg.player.pos.PlayerSpawnMessage

    if (hand != null && hand.get() != null) {
      item = hand.get().getMaterial().getId();
    }

    // Spawn message
    messages.add(new PlayerSpawnMessage(id, human.getName(), x, y, z, r, p, item, getSpawnParameters(entity)));

    // Armor
    EntityInventory inventory = entity.get(EntityInventory.class);
    final ItemStack boots, leggings, chestplate, helmet, held;
    if (inventory == null) {
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.