Package net.lightstone.msg

Examples of net.lightstone.msg.RelativeEntityPositionRotationMessage


    int pitch = rotation.getIntPitch();

    if (moved && teleport) {
      return new EntityTeleportMessage(id, x, y, z, yaw, pitch);
    } else if (moved && rotated) {
      return new RelativeEntityPositionRotationMessage(id, dx, dy, dz, yaw, pitch);
    } else if (moved) {
      return new RelativeEntityPositionMessage(id, dx, dy, dz);
    } else if (rotated) {
      return new EntityRotationMessage(id, yaw, pitch);
    }
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 RelativeEntityPositionRotationMessage(id, dx, dy, dz, rotation, pitch);
  }
View Full Code Here

TOP

Related Classes of net.lightstone.msg.RelativeEntityPositionRotationMessage

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.