类 ServerboundInteractPacket
java.lang.Object
net.minecraft.network.protocol.game.ServerboundInteractPacket
- 所有已实现的接口:
Packet<ServerGamePacketListener>
-
嵌套类概要
嵌套类修饰符和类型类说明(专用程序包) static interface
(专用程序包) static enum
static interface
(专用程序包) static class
(专用程序包) static class
-
字段概要
字段修饰符和类型字段说明private final ServerboundInteractPacket.Action
(专用程序包) static final ServerboundInteractPacket.Action
private final int
static final StreamCodec
<FriendlyByteBuf, ServerboundInteractPacket> private final boolean
-
构造器概要
构造器限定符构造器说明private
ServerboundInteractPacket
(int p_179598_, boolean p_179599_, ServerboundInteractPacket.Action p_179600_) private
ServerboundInteractPacket
(FriendlyByteBuf p_179602_) -
方法概要
修饰符和类型方法说明static ServerboundInteractPacket
createAttackPacket
(Entity p_179606_, boolean p_179607_) static ServerboundInteractPacket
createInteractionPacket
(Entity p_179609_, boolean p_179610_, InteractionHand p_179611_) static ServerboundInteractPacket
createInteractionPacket
(Entity p_179613_, boolean p_179614_, InteractionHand p_179615_, Vec3 p_179616_) void
dispatch
(ServerboundInteractPacket.Handler p_179618_) getTarget
(ServerLevel p_179604_) void
handle
(ServerGamePacketListener p_134055_) boolean
type()
private void
write
(FriendlyByteBuf p_134058_) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.network.protocol.Packet
isSkippable, isTerminal
-
字段详细资料
-
STREAM_CODEC
-
entityId
private final int entityId -
action
-
usingSecondaryAction
private final boolean usingSecondaryAction -
ATTACK_ACTION
-
-
构造器详细资料
-
ServerboundInteractPacket
private ServerboundInteractPacket(int p_179598_, boolean p_179599_, ServerboundInteractPacket.Action p_179600_) -
ServerboundInteractPacket
-
-
方法详细资料
-
createAttackPacket
-
createInteractionPacket
public static ServerboundInteractPacket createInteractionPacket(Entity p_179609_, boolean p_179610_, InteractionHand p_179611_) -
createInteractionPacket
public static ServerboundInteractPacket createInteractionPacket(Entity p_179613_, boolean p_179614_, InteractionHand p_179615_, Vec3 p_179616_) -
write
-
type
- 指定者:
type
在接口中Packet<ServerGamePacketListener>
-
handle
- 指定者:
handle
在接口中Packet<ServerGamePacketListener>
-
getTarget
-
isUsingSecondaryAction
public boolean isUsingSecondaryAction() -
dispatch
-