onStoppedUsing

open fun onStoppedUsing(staffStack: ItemStack, world: World, user: LivingEntity, remainingUseTicks: Int)(source)

Called on both the client and the server by Minecraft, when an entity stops using the staff before being used for maxUseTime. If that time is reached, finishUsing will be called.

Parameters

staffStack

The item stack used to perform the action

world

The world the user is in

user

The entity, which used the staff

remainingUseTicks

The number of ticks left until reaching maxUseTime

See also