Examples of PlayerLookMessage


Examples of net.glowstone.net.message.play.player.PlayerLookMessage

    @Override
    public PlayerLookMessage decode(ByteBuf buffer) throws IOException {
        float yaw = buffer.readFloat();
        float pitch = buffer.readFloat();
        boolean onGround = buffer.readBoolean();
        return new PlayerLookMessage(yaw, pitch, onGround);
    }
View Full Code Here

Examples of org.spout.vanilla.protocol.msg.player.pos.PlayerLookMessage

  @Override
  public PlayerLookMessage decode(ByteBuf buffer) throws IOException {
    float yaw = -buffer.readFloat();
    float pitch = buffer.readFloat();
    boolean onGround = buffer.readByte() == 1;
    return new PlayerLookMessage(yaw, pitch, onGround);
  }
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.