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

Examples of org.spout.vanilla.protocol.msg.entity.pos.EntityHeadYawMessage


    // Head movement
    EntityHead head = entity.get(EntityHead.class);
    if (head != null && head.isDirty()) {
      final int headYawProt = VanillaByteBufUtils.protocolifyYaw(head.getOrientation().getAxesAngleDeg().getY());
      messages.add(new EntityHeadYawMessage(entity.getId(), headYawProt));
    }

    // Physics
    //TODO: Actually not used?
    /*if (physics != null && physics.isLinearVelocityDirty()) {
View Full Code Here


  @Override
  public EntityHeadYawMessage decode(ByteBuf buffer) throws IOException {
    int id = buffer.readInt();
    int headYaw = buffer.readUnsignedByte();
    return new EntityHeadYawMessage(id, headYaw);
  }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.protocol.msg.entity.pos.EntityHeadYawMessage

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.