Package net.md_5.bungee.protocol.packet
Class PlayerPosition
java.lang.Object
net.md_5.bungee.protocol.DefinedPacket
net.md_5.bungee.protocol.packet.PlayerPosition
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerPosition(double x, double y, double z, float yaw, float pitch, boolean onGround) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanfloatgetPitch()doublegetX()doublegetY()floatgetYaw()doublegetZ()voidhandle(AbstractPacketHandler handler) inthashCode()booleanvoidread(io.netty.buffer.ByteBuf buf) voidsetOnGround(boolean onGround) voidsetPitch(float pitch) voidsetX(double x) voidsetY(double y) voidsetYaw(float yaw) voidsetZ(double z) toString()voidwrite(io.netty.buffer.ByteBuf buf) Methods inherited from class net.md_5.bungee.protocol.DefinedPacket
expectedMaxLength, expectedMinLength, read, readArray, readArray, readEnumSet, readFixedBitSet, readProperties, readPublicKey, readString, readString, readStringArray, readTag, readUUID, readVarInt, readVarInt, readVarIntArray, readVarShort, toArray, write, writeArray, writeEnumSet, writeFixedBitSet, writeProperties, writePublicKey, writeString, writeString, writeStringArray, writeTag, writeUUID, writeVarInt, writeVarInt, writeVarShort
-
Constructor Details
-
PlayerPosition
public PlayerPosition(double x, double y, double z, float yaw, float pitch, boolean onGround) -
PlayerPosition
public PlayerPosition()
-
-
Method Details
-
read
public void read(io.netty.buffer.ByteBuf buf) - Overrides:
readin classDefinedPacket
-
write
public void write(io.netty.buffer.ByteBuf buf) - Overrides:
writein classDefinedPacket
-
handle
- Specified by:
handlein classDefinedPacket- Throws:
Exception
-
getX
public double getX() -
getY
public double getY() -
getZ
public double getZ() -
getYaw
public float getYaw() -
getPitch
public float getPitch() -
isOnGround
public boolean isOnGround() -
setX
public void setX(double x) -
setY
public void setY(double y) -
setZ
public void setZ(double z) -
setYaw
public void setYaw(float yaw) -
setPitch
public void setPitch(float pitch) -
setOnGround
public void setOnGround(boolean onGround) -
toString
- Specified by:
toStringin classDefinedPacket
-
equals
- Specified by:
equalsin classDefinedPacket
-
canEqual
-
hashCode
public int hashCode()- Specified by:
hashCodein classDefinedPacket
-