For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/classes/PlayerInteractWithEntityAfterEvent.md.

Class: PlayerInteractWithEntityAfterEvent

event player entity

Beta

包含有关玩家成功与实体交互之后的事件信息。

Contains information regarding an event after a player successfully interacts with an entity.

Properties

beforeItemStack?

readonly optional beforeItemStack?: ItemStack

Beta

交互成功前的物品堆,如果为空手则为 undefined

Remarks

The ItemStack before the interaction succeeded, or undefined if hand is empty.


itemStack?

readonly optional itemStack?: ItemStack

Beta

交互成功后的物品堆,如果为空手则为 undefined

Remarks

The ItemStack after the interaction succeeded, or undefined if hand is empty.


player

readonly player: Player

Beta

此事件的源玩家。

Remarks

Source Player for this event.


target

readonly target: Entity

Beta

将被交互的实体。

Remarks

The entity that will be interacted with.

同领域相关