getMaxUseTime

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

Called on both the client and the server my Minecraft to get the number of ticks the staff can be used for using the current item.

Parameters

staffStack

The item stack used to perform the action

world

The world the user is in

user

The player, which uses the staff