public class Commands extends DefinedPacket
| Modifier and Type | Class and Description |
|---|---|
static class |
Commands.SuggestionRegistry |
| Constructor and Description |
|---|
Commands() |
Commands(com.mojang.brigadier.tree.RootCommandNode root) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
com.mojang.brigadier.tree.RootCommandNode |
getRoot() |
void |
handle(AbstractPacketHandler handler) |
int |
hashCode() |
void |
read(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
void |
setRoot(com.mojang.brigadier.tree.RootCommandNode root) |
String |
toString() |
void |
write(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
read, readArray, readArray, readEnumSet, readFixedBitSet, readProperties, readPublicKey, readString, readString, readStringArray, readTag, readUUID, readVarInt, readVarInt, readVarIntArray, readVarShort, toArray, write, writeArray, writeEnumSet, writeFixedBitSet, writeProperties, writePublicKey, writeString, writeString, writeStringArray, writeTag, writeUUID, writeVarInt, writeVarShortpublic Commands()
public Commands(com.mojang.brigadier.tree.RootCommandNode root)
public void read(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion)
read in class DefinedPacketpublic void write(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion)
write in class DefinedPacketpublic void handle(AbstractPacketHandler handler) throws Exception
handle in class DefinedPacketExceptionpublic com.mojang.brigadier.tree.RootCommandNode getRoot()
public void setRoot(com.mojang.brigadier.tree.RootCommandNode root)
public String toString()
toString in class DefinedPacketpublic boolean equals(Object o)
equals in class DefinedPacketprotected boolean canEqual(Object other)
public int hashCode()
hashCode in class DefinedPacketCopyright © 2012–2023 SpigotMC. All rights reserved.