useOn

open fun useOn(entity: Clickable): Boolean

Uses this item on the specified entity. Will travel to and adjust the camera if necessary.

Return

true if the item was used on the entity successfully, false otherwise

Parameters

entity

the entity to use this item on