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 boolean
private String
private boolean
private static int
private static int
private static int
private CommandBlockEntity.Mode
private BlockPos
private 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
-
Field Details
-
FLAG_TRACK_OUTPUT
private static final int FLAG_TRACK_OUTPUT- See Also:
- Constant Field Values
-
FLAG_CONDITIONAL
private static final int FLAG_CONDITIONAL- See Also:
- Constant Field Values
-
FLAG_AUTOMATIC
private static final int FLAG_AUTOMATIC- See Also:
- Constant Field Values
-
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
-