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
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private int
-
Constructor Summary
ConstructorDescriptionServerboundPlayerCommandPacket(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 TypeMethodDescriptionint
getData()
int
getId()
void
handle(ServerGamePacketListener p_134317_)
void
write(FriendlyByteBuf p_134319_)
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
-
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:
write
in interfacePacket<ServerGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ServerGamePacketListener>
-
getId
public int getId() -
getAction
-
getData
public int getData()
-