Examples of PlayerPositionLookMessage


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

        double z = buffer.readDouble();
        float yaw = buffer.readFloat();
        float pitch = buffer.readFloat();
        boolean onGround = buffer.readBoolean();

        return new PlayerPositionLookMessage(onGround, x, y, z, yaw, pitch);
    }
View Full Code Here

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

      first = false;
    }
    Point p = event.getTransform().getPosition();
    Quaternionf rot = event.getTransform().getRotation();
    final Vector3f axesAngles = rot.getAxesAngleDeg();
    PlayerPositionLookMessage PPLMsg = new PlayerPositionLookMessage(p.getX(), p.getY() + STANCE, p.getZ(), p.getY(), axesAngles.getY(), axesAngles.getX(), true, VanillaBlockDataChannelMessage.CHANNEL_ID, getRepositionManager());
    event.getMessages().add(PPLMsg);
  }
View Full Code Here

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

    double stance = buffer.readDouble();
    double z = buffer.readDouble();
    float yaw = -buffer.readFloat();
    float pitch = buffer.readFloat();
    boolean onGround = buffer.readByte() == 1;
    return new PlayerPositionLookMessage(x, y, z, stance, yaw, pitch, onGround, NullRepositionManager.getInstance());
  }
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.