usageTick

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

staffStack

The item stack used to perform the action

world

The world user is in

user

The entity, which uses the staff

remainingUseTicks

The number of ticks remaining before an entity finishes using the staff counting down from getMaxUseTime to 0

See also