类 ServerboundPlayerActionPacket
java.lang.Object
net.minecraft.network.protocol.game.ServerboundPlayerActionPacket
- 所有已实现的接口:
Packet<ServerGamePacketListener>
public class ServerboundPlayerActionPacket
extends Object
implements Packet<ServerGamePacketListener>
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private final ServerboundPlayerActionPacket.Action
private final Direction
private final BlockPos
private final int
static final StreamCodec
<FriendlyByteBuf, ServerboundPlayerActionPacket> -
构造器概要
构造器限定符构造器说明private
ServerboundPlayerActionPacket
(FriendlyByteBuf p_179711_) ServerboundPlayerActionPacket
(ServerboundPlayerActionPacket.Action p_134272_, BlockPos p_134273_, Direction p_134274_) ServerboundPlayerActionPacket
(ServerboundPlayerActionPacket.Action p_237983_, BlockPos p_237984_, Direction p_237985_, int p_237986_) -
方法概要
修饰符和类型方法说明getPos()
int
void
handle
(ServerGamePacketListener p_134280_) type()
private void
write
(FriendlyByteBuf p_134283_) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.network.protocol.Packet
isSkippable, isTerminal
-
字段详细资料
-
STREAM_CODEC
-
pos
-
direction
-
action
-
sequence
private final int sequence
-
-
构造器详细资料
-
ServerboundPlayerActionPacket
public ServerboundPlayerActionPacket(ServerboundPlayerActionPacket.Action p_237983_, BlockPos p_237984_, Direction p_237985_, int p_237986_) -
ServerboundPlayerActionPacket
public ServerboundPlayerActionPacket(ServerboundPlayerActionPacket.Action p_134272_, BlockPos p_134273_, Direction p_134274_) -
ServerboundPlayerActionPacket
-
-
方法详细资料
-
write
-
type
- 指定者:
type
在接口中Packet<ServerGamePacketListener>
-
handle
- 指定者:
handle
在接口中Packet<ServerGamePacketListener>
-
getPos
-
getDirection
-
getAction
-
getSequence
public int getSequence()
-