Item.useOnEntity

Function called when the item is used on an entity as right click or long screen pressure.

class Item
bool
useOnEntity

Return Value

Type: bool

true if the items is a tool and it has been consumed, false otherwise

Meta