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

Examples of org.spout.vanilla.protocol.msg.entity.spawn.EntityObjectMessage


    int throwerId = buffer.readInt();
    if (throwerId > 0) {
      short speedX = buffer.readShort();
      short speedY = buffer.readShort();
      short speedZ = buffer.readShort();
      return new EntityObjectMessage(entityId, type, x, y, z, throwerId, speedX, speedY, speedZ, yaw, pitch, NullRepositionManager.getInstance());
    }
    return new EntityObjectMessage(entityId, type, x, y, z, throwerId, yaw, pitch, NullRepositionManager.getInstance());
  }
View Full Code Here


  @Override
  public List<Message> getSpawnMessages(Entity entity, RepositionManager rm) {
    List<Message> messages = new ArrayList<>();
    Potion potion = entity.add(Potion.class);
    messages.add(new EntityObjectMessage(entity, (byte) typeId, potion.getPotion().getData(), rm));
    return messages;
  }
View Full Code Here

  }

  @Override
  public List<Message> getSpawnMessages(Entity entity, RepositionManager rm) {
    List<Message> msgs = new ArrayList<Message>();
    msgs.add(new EntityObjectMessage(entity, (byte) typeId, VanillaByteBufUtils.getNativeDirection(entity.add(ItemFrame.class).getOrientation()), rm));
    msgs.add(new EntityMetadataMessage(entity.getId(), this.getSpawnParameters(entity)));
    return msgs;
  }
View Full Code Here

  }

  @Override
  public List<Message> getSpawnMessages(Entity entity, RepositionManager rm) {
    List<Message> messages = new ArrayList<>();
    messages.add(new EntityObjectMessage(entity, (byte) typeId, rm));
    messages.add(new EntityMetadataMessage(entity.getId(), getSpawnParameters(entity)));
    return messages;
  }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.protocol.msg.entity.spawn.EntityObjectMessage

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.