Class RequestCommandCompletionsC2SPacket
java.lang.Object
net.minecraft.network.packet.c2s.play.RequestCommandCompletionsC2SPacket
- All Implemented Interfaces:
Packet<ServerPlayPacketListener>
public class RequestCommandCompletionsC2SPacket extends Object implements Packet<ServerPlayPacketListener>
-
Field Summary
Fields Modifier and Type Field Description private int
completionId
private String
partialCommand
-
Constructor Summary
Constructors Constructor Description RequestCommandCompletionsC2SPacket()
RequestCommandCompletionsC2SPacket(int completionId, String partialCommand)
-
Method Summary
Modifier and Type Method Description void
apply(ServerPlayPacketListener serverPlayPacketListener)
int
getCompletionId()
String
getPartialCommand()
void
read(PacketByteBuf buf)
void
write(PacketByteBuf buf)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
completionId
private int completionId -
partialCommand
-
-
Constructor Details
-
RequestCommandCompletionsC2SPacket
public RequestCommandCompletionsC2SPacket() -
RequestCommandCompletionsC2SPacket
@Environment(CLIENT) public RequestCommandCompletionsC2SPacket(int completionId, String partialCommand)
-
-
Method Details
-
read
- Specified by:
read
in interfacePacket<ServerPlayPacketListener>
- Throws:
IOException
-
write
- Specified by:
write
in interfacePacket<ServerPlayPacketListener>
- Throws:
IOException
-
apply
- Specified by:
apply
in interfacePacket<ServerPlayPacketListener>
-
getCompletionId
public int getCompletionId() -
getPartialCommand
-