Class ServerboundChatPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.ServerboundChatPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionServerboundChatPacket(@NonNull String message, long timeStamp, long salt, byte @Nullable [] signature, int offset, BitSet acknowledgedMessages) ServerboundChatPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NonNull StringintlonggetSalt()byte @Nullable []longinthashCode()voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ServerboundChatPacketwithAcknowledgedMessages(BitSet acknowledgedMessages) @NonNull ServerboundChatPacketwithMessage(@NonNull String message) @NonNull ServerboundChatPacketwithOffset(int offset) @NonNull ServerboundChatPacketwithSalt(long salt) @NonNull ServerboundChatPacketwithSignature(byte @Nullable [] signature) @NonNull ServerboundChatPacketwithTimeStamp(long timeStamp) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isTerminal, shouldRunOnGameThread
-
Constructor Details
-
ServerboundChatPacket
-
ServerboundChatPacket
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getMessage
-
getTimeStamp
public long getTimeStamp() -
getSalt
public long getSalt() -
getSignature
public byte @Nullable [] getSignature() -
getOffset
public int getOffset() -
getAcknowledgedMessages
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withMessage
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTimeStamp
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSalt
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSignature
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withOffset
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAcknowledgedMessages
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-