ItemComponentConsumeEvent Class

Caution

This class is still in pre-release. Its signature may change or it may be removed in future releases.

Contains information related to a food item being consumed.

Properties

itemStack

read-only itemStack: ItemStack;

The item stack that was consumed.

Type: ItemStack

source

read-only source: Entity;

The source entity that consumed the item.

Type: Entity