Class ServerboundChatCommandPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.ServerboundChatCommandPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionServerboundChatCommandPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) ServerboundChatCommandPacket(String command) ServerboundChatCommandPacket(String command, long timeStamp, long salt, List<ArgumentSignature> signatures, int offset, BitSet acknowledgedMessages) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintlonggetSalt()longinthashCode()voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ServerboundChatCommandPacketwithAcknowledgedMessages(BitSet acknowledgedMessages) @NonNull ServerboundChatCommandPacketwithCommand(String command) @NonNull ServerboundChatCommandPacketwithOffset(int offset) @NonNull ServerboundChatCommandPacketwithSalt(long salt) @NonNull ServerboundChatCommandPacketwithSignatures(List<ArgumentSignature> signatures) @NonNull ServerboundChatCommandPacketwithTimeStamp(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
isPriority
-
Constructor Details
-
ServerboundChatCommandPacket
-
ServerboundChatCommandPacket
-
ServerboundChatCommandPacket
public ServerboundChatCommandPacket(String command, long timeStamp, long salt, List<ArgumentSignature> signatures, int offset, BitSet acknowledgedMessages)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getCommand
-
getTimeStamp
public long getTimeStamp() -
getSalt
public long getSalt() -
getSignatures
-
getOffset
public int getOffset() -
getAcknowledgedMessages
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withCommand
- 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).
-
withSignatures
- 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).
-