Class ClientboundSetDefaultSpawnPositionPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.level.ClientboundSetDefaultSpawnPositionPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundSetDefaultSpawnPositionPacket(int x, int y, int z, float angle) ClientboundSetDefaultSpawnPositionPacket(io.netty.buffer.ByteBuf in) -
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
public ClientboundSetDefaultSpawnPositionPacket(int x, int y, int z, float angle)
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
getX
public int getX() -
getY
public int getY() -
getZ
public int getZ() -
getAngle
public float getAngle() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withX
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withY
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withZ
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAngle
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-