Item.attackOnEntity

Function called when the item is used against an entity as a left click or screen tap.

class Item
bool
attackOnEntity

Return Value

Type: bool

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

Meta