Class ClientboundSetDefaultSpawnPositionPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.level.ClientboundSetDefaultSpawnPositionPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundSetDefaultSpawnPositionPacket(io.netty.buffer.ByteBuf in) ClientboundSetDefaultSpawnPositionPacket(GlobalPos globalPos, float yaw, float pitch) -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isPriority, isTerminal
-
Constructor Details
-
ClientboundSetDefaultSpawnPositionPacket
public ClientboundSetDefaultSpawnPositionPacket(io.netty.buffer.ByteBuf in) -
ClientboundSetDefaultSpawnPositionPacket
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
getGlobalPos
-
getYaw
public float getYaw() -
getPitch
public float getPitch() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withGlobalPos
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withYaw
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPitch
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-