Class ClientboundRespawnPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.ClientboundRespawnPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundRespawnPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) ClientboundRespawnPacket(PlayerSpawnInfo commonPlayerSpawnInfo, boolean keepMetadata, boolean keepAttributeModifiers) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleaninthashCode()booleanbooleanvoidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ClientboundRespawnPacketwithCommonPlayerSpawnInfo(PlayerSpawnInfo commonPlayerSpawnInfo) @NonNull ClientboundRespawnPacketwithKeepAttributeModifiers(boolean keepAttributeModifiers) @NonNull ClientboundRespawnPacketwithKeepMetadata(boolean keepMetadata) 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
-
ClientboundRespawnPacket
-
ClientboundRespawnPacket
public ClientboundRespawnPacket(PlayerSpawnInfo commonPlayerSpawnInfo, boolean keepMetadata, boolean keepAttributeModifiers)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getCommonPlayerSpawnInfo
-
isKeepMetadata
public boolean isKeepMetadata() -
isKeepAttributeModifiers
public boolean isKeepAttributeModifiers() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withCommonPlayerSpawnInfo
public @NonNull ClientboundRespawnPacket withCommonPlayerSpawnInfo(PlayerSpawnInfo commonPlayerSpawnInfo) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withKeepMetadata
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withKeepAttributeModifiers
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-