类 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
private final boolean
-
构造器概要
构造器限定符构造器说明private
ServerboundInteractPacket
(int pEntityId, boolean pUsingSecondaryAction, ServerboundInteractPacket.Action pAction) ServerboundInteractPacket
(FriendlyByteBuf pBuffer) -
方法概要
修饰符和类型方法说明static ServerboundInteractPacket
createAttackPacket
(Entity pEntity, boolean pUsingSecondaryAction) static ServerboundInteractPacket
createInteractionPacket
(Entity pEntity, boolean pUsingSecondaryAction, InteractionHand pHand) static ServerboundInteractPacket
createInteractionPacket
(Entity pEntity, boolean pUsingSecondaryAction, InteractionHand pHand, Vec3 pInteractionLocation) void
dispatch
(ServerboundInteractPacket.Handler pHandler) getTarget
(ServerLevel pLevel) void
handle
(ServerGamePacketListener pHandler) boolean
void
write
(FriendlyByteBuf pBuffer) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.network.protocol.Packet
isSkippable
-
字段详细资料
-
entityId
private final int entityId -
action
-
usingSecondaryAction
private final boolean usingSecondaryAction -
ATTACK_ACTION
-
-
构造器详细资料
-
ServerboundInteractPacket
private ServerboundInteractPacket(int pEntityId, boolean pUsingSecondaryAction, ServerboundInteractPacket.Action pAction) -
ServerboundInteractPacket
-
-
方法详细资料
-
createAttackPacket
public static ServerboundInteractPacket createAttackPacket(Entity pEntity, boolean pUsingSecondaryAction) -
createInteractionPacket
public static ServerboundInteractPacket createInteractionPacket(Entity pEntity, boolean pUsingSecondaryAction, InteractionHand pHand) -
createInteractionPacket
public static ServerboundInteractPacket createInteractionPacket(Entity pEntity, boolean pUsingSecondaryAction, InteractionHand pHand, Vec3 pInteractionLocation) -
write
- 指定者:
write
在接口中Packet<ServerGamePacketListener>
-
handle
- 指定者:
handle
在接口中Packet<ServerGamePacketListener>
-
getTarget
-
isUsingSecondaryAction
public boolean isUsingSecondaryAction() -
dispatch
-