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/enums/EntitySwingSource.md.

Enumeration: EntitySwingSource

entity

Beta

描述实体挥动来源的枚举。作为 PlayerSwingStartAfterEvent 的一部分发送。

Enumerator describing the source of an Entity swing. Sent as part of PlayerSwingStartAfterEvent

Enumeration Members

Attack

Attack: "Attack"

Beta

Remarks

当实体作为攻击的一部分挥动时发送。

Sent when the Entity swings as part of an attack.


Build

Build: "Build"

Beta

Remarks

当实体作为建造动作的一部分挥动时发送。

Sent when the Entity swings as part of a build action.


DropItem

DropItem: "DropItem"

Beta

Remarks

当实体作为丢弃物品的一部分挥动时发送。

Sent when the Entity swings as part of dropping an item.


Event

Event: "Event"

Beta

Remarks

当实体作为事件响应的一部分挥动时发送。

Sent when the Entity swings as part of an event response.


Interact

Interact: "Interact"

Beta

Remarks

当实体作为交互的一部分挥动时发送。

Sent when the Entity swings as part of an interaction.


Mine

Mine: "Mine"

Beta

Remarks

当实体作为挖掘动作的一部分挥动时发送。

Sent when the Entity swings as part of a mine action.


None

None: "None"

Beta

Remarks

当实体挥动没有可确定的来源时发送。

Sent when the Entity swing has no determinable source.


ThrowItem

ThrowItem: "ThrowItem"

Beta

Remarks

当实体作为投掷物品的一部分挥动时发送。

Sent when the Entity swings as part of throwing an item.


UseItem

UseItem: "UseItem"

Beta

Remarks

当实体作为使用物品的一部分挥动时发送。

Sent when the Entity swings as part of using an item.

同领域相关