Class ServerboundSetCommandBlockPacket
java.lang.Object
net.minecraft.network.protocol.game.ServerboundSetCommandBlockPacket
- All Implemented Interfaces:
Packet<ServerGamePacketListener>
public class ServerboundSetCommandBlockPacket
extends Object
implements Packet<ServerGamePacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
private final String
private final boolean
private static final int
private static final int
private static final int
private final CommandBlockEntity.Mode
private final BlockPos
static final StreamCodec
<FriendlyByteBuf, ServerboundSetCommandBlockPacket> private final boolean
-
Constructor Summary
ConstructorsModifierConstructorDescriptionServerboundSetCommandBlockPacket
(BlockPos pPos, String pCommand, CommandBlockEntity.Mode pMode, boolean pTrackOutput, boolean pConditional, boolean pAutomatic) private
ServerboundSetCommandBlockPacket
(FriendlyByteBuf p_179756_) -
Method Summary
Modifier and TypeMethodDescriptiongetMode()
getPos()
void
handle
(ServerGamePacketListener pHandler) Passes this Packet on to the NetHandler for processing.boolean
boolean
boolean
type()
private void
write
(FriendlyByteBuf p_134523_) Writes the raw packet data to the data stream.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.protocol.Packet
isSkippable, isTerminal
-
Field Details
-
STREAM_CODEC
-
FLAG_TRACK_OUTPUT
private static final int FLAG_TRACK_OUTPUT- See Also:
-
FLAG_CONDITIONAL
private static final int FLAG_CONDITIONAL- See Also:
-
FLAG_AUTOMATIC
private static final int FLAG_AUTOMATIC- See Also:
-
pos
-
command
-
trackOutput
private final boolean trackOutput -
conditional
private final boolean conditional -
automatic
private final boolean automatic -
mode
-
-
Constructor Details
-
ServerboundSetCommandBlockPacket
public ServerboundSetCommandBlockPacket(BlockPos pPos, String pCommand, CommandBlockEntity.Mode pMode, boolean pTrackOutput, boolean pConditional, boolean pAutomatic) -
ServerboundSetCommandBlockPacket
-
-
Method Details
-
write
Writes the raw packet data to the data stream. -
type
- Specified by:
type
in interfacePacket<ServerGamePacketListener>
-
handle
Passes this Packet on to the NetHandler for processing.- Specified by:
handle
in interfacePacket<ServerGamePacketListener>
-
getPos
-
getCommand
-
isTrackOutput
public boolean isTrackOutput() -
isConditional
public boolean isConditional() -
isAutomatic
public boolean isAutomatic() -
getMode
-