Examples of RelativeEntityPositionMessage


Examples of net.glowstone.net.message.play.entity.RelativeEntityPositionMessage

        int id = ByteBufUtils.readVarInt(buf);
        int deltaX = buf.readByte();
        int deltaY = buf.readByte();
        int deltaZ = buf.readByte();
        boolean onGround = buf.readBoolean();
        return new RelativeEntityPositionMessage(id, deltaX, deltaY, deltaZ, onGround);
    }
View Full Code Here

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

Examples of net.lightstone.msg.RelativeEntityPositionMessage

  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
Copyright © 2018 www.massapi.com. 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.