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

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


      if (force || looked) {
        messages.add(new EntityYawMessage(entity.getId(), newYaw, newPitch));
      }
    } else if (deltaX != 0 || deltaY != 0 || deltaZ != 0 || deltaYaw != 0 || deltaPitch != 0) {
      if (looked) {
        messages.add(new EntityRelativePositionYawMessage(entity.getId(), deltaX, deltaY, deltaZ, newYaw, newPitch));
      } else if (!prevTransform.getPosition().equals(newTransform.getPosition())) {
        messages.add(new EntityRelativePositionMessage(entity.getId(), deltaX, deltaY, deltaZ));
      }
    }
View Full Code Here


    int dx = buffer.readByte();
    int dy = buffer.readByte();
    int dz = buffer.readByte();
    int rotation = buffer.readUnsignedByte();
    int pitch = buffer.readUnsignedByte();
    return new EntityRelativePositionYawMessage(id, dx, dy, dz, rotation, pitch);
  }
View Full Code Here

TOP

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

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.