Package net.lightstone.msg

Examples of net.lightstone.msg.EntityRotationMessage


    } 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


  @Override
  public EntityRotationMessage decode(ChannelBuffer buffer) throws IOException {
    int id = buffer.readInt();
    int rotation = buffer.readUnsignedByte();
    int pitch = buffer.readUnsignedByte();
    return new EntityRotationMessage(id, rotation, pitch);
  }
View Full Code Here

TOP

Related Classes of net.lightstone.msg.EntityRotationMessage

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.