Class: ItemComponentUseOnEvent
event componentBeta
包含通过组件对某个方块使用物品时相关的信息。
Contains information regarding the use of an item on a block via a component.
Extends
Properties
block
readonlyblock:Block
Beta
Remarks
此事件影响的方块。
The block impacted by this event.
Inherited from
blockFace
readonlyblockFace:Direction
Beta
Remarks
使用物品所在的方块面。
The face of the block that the item was used on.
Inherited from
faceLocation
readonlyfaceLocation:Vector3
Beta
Remarks
相对于使用物品的方块西北底角的位置。
Location relative to the bottom north-west corner of the block that the item was used on.
Inherited from
itemStack
readonlyitemStack:ItemStack
Beta
Remarks
在方块上使用的物品堆。
The item stack used on the block.
Inherited from
source
readonlysource:Entity
Beta
Remarks
对方块使用该物品的实体。
The entity that used the item on the block.
usedOnBlockPermutation
readonlyusedOnBlockPermutation:BlockPermutation
Beta
Remarks
物品被使用的方块所对应的方块状态。
The block permutation that the item was used on.
