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 SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final ServerboundPlayerCommandPacket.Actionprivate final intprivate final int
- 
Constructor SummaryConstructorsConstructorDescriptionServerboundPlayerCommandPacket(FriendlyByteBuf p_179714_) ServerboundPlayerCommandPacket(Entity p_134306_, ServerboundPlayerCommandPacket.Action p_134307_) ServerboundPlayerCommandPacket(Entity p_134309_, ServerboundPlayerCommandPacket.Action p_134310_, int p_134311_) 
- 
Method SummaryModifier and TypeMethodDescriptionintgetData()intgetId()voidhandle(ServerGamePacketListener p_134317_) voidwrite(FriendlyByteBuf p_134319_) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.PacketisSkippable, nextProtocol
- 
Field Details- 
idprivate final int id
- 
action
- 
dataprivate final int data
 
- 
- 
Constructor Details- 
ServerboundPlayerCommandPacketpublic ServerboundPlayerCommandPacket(Entity p_134306_, ServerboundPlayerCommandPacket.Action p_134307_) 
- 
ServerboundPlayerCommandPacketpublic ServerboundPlayerCommandPacket(Entity p_134309_, ServerboundPlayerCommandPacket.Action p_134310_, int p_134311_) 
- 
ServerboundPlayerCommandPacket
 
- 
- 
Method Details- 
write- Specified by:
- writein interface- Packet<ServerGamePacketListener>
 
- 
handle- Specified by:
- handlein interface- Packet<ServerGamePacketListener>
 
- 
getIdpublic int getId()
- 
getAction
- 
getDatapublic int getData()
 
-