Package net.lightstone.msg

Examples of net.lightstone.msg.RelativeEntityPositionMessage


    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);
    }

    return null;
View Full Code Here


  public RelativeEntityPositionMessage decode(ChannelBuffer buffer) throws IOException {
    int id = buffer.readInt();
    int dx = buffer.readByte();
    int dy = buffer.readByte();
    int dz = buffer.readByte();
    return new RelativeEntityPositionMessage(id, dx, dy, dz);
  }
View Full Code Here

TOP

Related Classes of net.lightstone.msg.RelativeEntityPositionMessage

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.