Optional onThis function will be called when an item containing this component is hitting an entity and about to take durability damage.
Optional onThis function will be called when an item containing this component's use duration was completed.
Optional onThis function will be called when an item containing this component is eaten by an entity.
Optional onThis function will be called when an item containing this component is used to hit another entity.
Optional onThis function will be called when an item containing this component is used to mine a block.
Optional onThis function will be called when an item containing this component is used by a player.
Optional onThis function will be called when an item containing this component is used on a block.
Rc
Contains a set of events that will be raised for an item. This object must be bound using the ItemComponentRegistry.