Minestom/src/main/java/fr/themode/minestom/net/packet/client/play/ClientPlayerPositionPacket....

19 lines
494 B
Java

package fr.themode.minestom.net.packet.client.play;
import fr.adamaq01.ozao.net.Buffer;
import fr.themode.minestom.net.packet.client.ClientPlayPacket;
public class ClientPlayerPositionPacket extends ClientPlayPacket {
public double x, y, z;
public boolean onGround;
@Override
public void read(Buffer buffer) {
this.x = buffer.getDouble();
this.y = buffer.getDouble();
this.z = buffer.getDouble();
this.onGround = buffer.getBoolean();
}
}