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 booleanprivate final Stringprivate final booleanprivate static final intprivate static final intprivate static final intprivate final CommandBlockEntity.Modeprivate final BlockPosstatic final StreamCodec<FriendlyByteBuf, ServerboundSetCommandBlockPacket> private final boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionServerboundSetCommandBlockPacket(BlockPos pPos, String pCommand, CommandBlockEntity.Mode pMode, boolean pTrackOutput, boolean pConditional, boolean pAutomatic) private -
Method Summary
Modifier and TypeMethodDescriptiongetMode()getPos()voidhandle(ServerGamePacketListener pHandler) Passes this Packet on to the NetHandler for processing.booleanbooleanbooleantype()private voidwrite(FriendlyByteBuf pBuffer) 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, waitMethods 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:
typein interfacePacket<ServerGamePacketListener>
-
handle
Passes this Packet on to the NetHandler for processing.- Specified by:
handlein interfacePacket<ServerGamePacketListener>
-
getPos
-
getCommand
-
isTrackOutput
public boolean isTrackOutput() -
isConditional
public boolean isConditional() -
isAutomatic
public boolean isAutomatic() -
getMode
-