Class ServerboundPlayerCommandPacket
java.lang.Object
net.minecraft.network.protocol.game.ServerboundPlayerCommandPacket
- All Implemented Interfaces:
Packet<ServerGamePacketListener>
public class ServerboundPlayerCommandPacket
extends Object
implements Packet<ServerGamePacketListener>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ServerboundPlayerCommandPacket.Actionprivate final intprivate final intstatic final StreamCodec<FriendlyByteBuf, ServerboundPlayerCommandPacket> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateServerboundPlayerCommandPacket(Entity entity, ServerboundPlayerCommandPacket.Action action, int data) -
Method Summary
Modifier and TypeMethodDescriptionintgetData()intgetId()voidhandle(ServerGamePacketListener listener) type()private voidwrite(FriendlyByteBuf output) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Packet
isSkippable, isTerminal
-
Field Details
-
STREAM_CODEC
-
id
private final int id -
action
-
data
private final int data
-
-
Constructor Details
-
ServerboundPlayerCommandPacket
-
ServerboundPlayerCommandPacket
public ServerboundPlayerCommandPacket(Entity entity, ServerboundPlayerCommandPacket.Action action, int data) -
ServerboundPlayerCommandPacket
-
-
Method Details
-
write
-
type
- Specified by:
typein interfacePacket<ServerGamePacketListener>
-
handle
- Specified by:
handlein interfacePacket<ServerGamePacketListener>
-
getId
public int getId() -
getAction
-
getData
public int getData()
-