usage Tick
public Unit usageTick(ItemStack staffStack, World world, LivingEntity user, Integer remainingUseTicks)(source)
Called on both the client and the server by Minecraft every tick an entity uses the staff.
Parameters
staff Stack
The item stack used to perform the action
world
The world user is in
user
The entity, which uses the staff
remaining Use Ticks
The number of ticks remaining before an entity finishes using the staff counting down from maxUseTime to 0