onStoppedUsing

public Unit onStoppedUsing(ItemStack staffStack, World world, LivingEntity user, Integer remainingUseTicks)(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