public class UpdateCommandBlockC2SPacket extends Object implements Packet<ServerPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private boolean |
alwaysActive |
private String |
command |
private boolean |
conditional |
private BlockPos |
pos |
private boolean |
trackOutput |
private CommandBlockBlockEntity.Type |
type |
Constructor and Description |
---|
UpdateCommandBlockC2SPacket() |
UpdateCommandBlockC2SPacket(BlockPos pos,
String command,
CommandBlockBlockEntity.Type type,
boolean trackOutput,
boolean conditional,
boolean alwaysActive) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ServerPlayPacketListener serverPlayPacketListener) |
BlockPos |
getBlockPos() |
String |
getCommand() |
CommandBlockBlockEntity.Type |
getType() |
boolean |
isAlwaysActive() |
boolean |
isConditional() |
void |
read(PacketByteBuf buf) |
boolean |
shouldTrackOutput() |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private BlockPos pos
private String command
private boolean trackOutput
private boolean conditional
private boolean alwaysActive
private CommandBlockBlockEntity.Type type
public UpdateCommandBlockC2SPacket()
@Environment(value=CLIENT) public UpdateCommandBlockC2SPacket(BlockPos pos, String command, CommandBlockBlockEntity.Type type, boolean trackOutput, boolean conditional, boolean alwaysActive)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ServerPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ServerPlayPacketListener>
IOException
public void apply(ServerPlayPacketListener serverPlayPacketListener)
apply
in interface Packet<ServerPlayPacketListener>
public BlockPos getBlockPos()
public String getCommand()
public boolean shouldTrackOutput()
public boolean isConditional()
public boolean isAlwaysActive()
public CommandBlockBlockEntity.Type getType()