Package net.lightstone.msg

Examples of net.lightstone.msg.PositionRotationMessage


    double stance = buffer.readDouble();
    double z = buffer.readDouble();
    float rotation = buffer.readFloat();
    float pitch = buffer.readFloat();
    boolean onGround = buffer.readByte() == 1;
    return new PositionRotationMessage(x, y, z, stance, rotation, pitch, onGround);
  }
View Full Code Here


    // stream the initial set of blocks and teleport us
    this.streamBlocks();
    this.position = world.getSpawnPosition();
    this.sendMessage("§eWelcome to Lightstone, " + name + "!");
    this.session.send(new PositionRotationMessage(position.getX(), position.getY(), position.getZ(), position.getY() + NORMAL_EYE_HEIGHT, (float) rotation.getYaw(), (float) rotation.getPitch(), true));
  }
View Full Code Here

TOP

Related Classes of net.lightstone.msg.PositionRotationMessage

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.