public class UpdateCommandBlockMinecartC2SPacket extends Object implements Packet<ServerPlayPacketListener>
| Modifier and Type | Field and Description |
|---|---|
private String |
command |
private int |
entityId |
private boolean |
trackOutput |
| Constructor and Description |
|---|
UpdateCommandBlockMinecartC2SPacket() |
UpdateCommandBlockMinecartC2SPacket(int entityId,
String command,
boolean trackOutput) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(ServerPlayPacketListener serverPlayPacketListener) |
String |
getCommand() |
CommandBlockExecutor |
getMinecartCommandExecutor(World world) |
void |
read(PacketByteBuf buf) |
boolean |
shouldTrackOutput() |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWritingErrorSkippableprivate int entityId
private String command
private boolean trackOutput
public UpdateCommandBlockMinecartC2SPacket()
@Environment(value=CLIENT)
public UpdateCommandBlockMinecartC2SPacket(int entityId,
String command,
boolean trackOutput)
public void read(PacketByteBuf buf) throws IOException
read in interface Packet<ServerPlayPacketListener>IOExceptionpublic void write(PacketByteBuf buf) throws IOException
write in interface Packet<ServerPlayPacketListener>IOExceptionpublic void apply(ServerPlayPacketListener serverPlayPacketListener)
apply in interface Packet<ServerPlayPacketListener>@Nullable public CommandBlockExecutor getMinecartCommandExecutor(World world)
public String getCommand()
public boolean shouldTrackOutput()