public class CommandSuggestionsS2CPacket extends Object implements Packet<ClientPlayPacketListener>
| Modifier and Type | Field and Description |
|---|---|
private int |
completionId |
private com.mojang.brigadier.suggestion.Suggestions |
suggestions |
| Constructor and Description |
|---|
CommandSuggestionsS2CPacket() |
CommandSuggestionsS2CPacket(int completionId,
com.mojang.brigadier.suggestion.Suggestions suggestions) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
int |
getCompletionId() |
com.mojang.brigadier.suggestion.Suggestions |
getSuggestions() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWritingErrorSkippableprivate int completionId
private com.mojang.brigadier.suggestion.Suggestions suggestions
public CommandSuggestionsS2CPacket()
public CommandSuggestionsS2CPacket(int completionId,
com.mojang.brigadier.suggestion.Suggestions suggestions)
public void read(PacketByteBuf buf) throws IOException
read in interface Packet<ClientPlayPacketListener>IOExceptionpublic void write(PacketByteBuf buf) throws IOException
write in interface Packet<ClientPlayPacketListener>IOExceptionpublic void apply(ClientPlayPacketListener clientPlayPacketListener)
apply in interface Packet<ClientPlayPacketListener>@Environment(value=CLIENT) public int getCompletionId()
@Environment(value=CLIENT) public com.mojang.brigadier.suggestion.Suggestions getSuggestions()