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 int - 
Constructor Summary
ConstructorsConstructorDescriptionServerboundPlayerCommandPacket(FriendlyByteBuf p_179714_) ServerboundPlayerCommandPacket(Entity p_134306_, ServerboundPlayerCommandPacket.Action p_134307_) ServerboundPlayerCommandPacket(Entity p_134309_, ServerboundPlayerCommandPacket.Action p_134310_, int p_134311_)  - 
Method Summary
Modifier and TypeMethodDescriptionintgetData()intgetId()voidhandle(ServerGamePacketListener p_134317_) voidwrite(FriendlyByteBuf p_134319_) 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, nextProtocol 
- 
Field Details
- 
id
private final int id - 
action
 - 
data
private final int data 
 - 
 - 
Constructor Details
- 
ServerboundPlayerCommandPacket
public ServerboundPlayerCommandPacket(Entity p_134306_, ServerboundPlayerCommandPacket.Action p_134307_)  - 
ServerboundPlayerCommandPacket
public ServerboundPlayerCommandPacket(Entity p_134309_, ServerboundPlayerCommandPacket.Action p_134310_, int p_134311_)  - 
ServerboundPlayerCommandPacket
 
 - 
 - 
Method Details
- 
write
- Specified by:
 writein interfacePacket<ServerGamePacketListener>
 - 
handle
- Specified by:
 handlein interfacePacket<ServerGamePacketListener>
 - 
getId
public int getId() - 
getAction
 - 
getData
public int getData() 
 -