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
Modifier 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
ModifierConstructorDescriptionServerboundSetCommandBlockPacket
(BlockPos p_134509_, String p_134510_, CommandBlockEntity.Mode p_134511_, boolean p_134512_, boolean p_134513_, boolean p_134514_) private
ServerboundSetCommandBlockPacket
(FriendlyByteBuf p_179756_) -
Method Summary
Modifier and TypeMethodDescriptiongetMode()
getPos()
void
handle
(ServerGamePacketListener p_134520_) boolean
boolean
boolean
type()
private void
write
(FriendlyByteBuf p_134523_) 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 p_134509_, String p_134510_, CommandBlockEntity.Mode p_134511_, boolean p_134512_, boolean p_134513_, boolean p_134514_) -
ServerboundSetCommandBlockPacket
-
-
Method Details
-
write
-
type
- Specified by:
type
in interfacePacket<ServerGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ServerGamePacketListener>
-
getPos
-
getCommand
-
isTrackOutput
public boolean isTrackOutput() -
isConditional
public boolean isConditional() -
isAutomatic
public boolean isAutomatic() -
getMode
-