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
private final boolean
-
Constructor Summary
ConstructorDescriptionServerboundSetCommandBlockPacket
(BlockPos p_134509_, String p_134510_, CommandBlockEntity.Mode p_134511_, boolean p_134512_, boolean p_134513_, boolean p_134514_) ServerboundSetCommandBlockPacket
(FriendlyByteBuf p_179756_) -
Method Summary
Modifier and TypeMethodDescriptiongetMode()
getPos()
void
handle
(ServerGamePacketListener p_134520_) boolean
boolean
boolean
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, nextProtocol
-
Field Details
-
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
- Specified by:
write
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
-