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) ServerboundChatCommandPacket(String command) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleaninthashCode()voidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ServerboundChatCommandPacketwithCommand(String command) 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
-
ServerboundChatCommandPacket
public ServerboundChatCommandPacket(io.netty.buffer.ByteBuf in) -
ServerboundChatCommandPacket
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
getCommand
-
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).
-