isInvulnerableToLightning

open fun isInvulnerableToLightning(staffStack: ItemStack, world: World, user: LivingEntity, hand: Hand): Boolean(source)

Returns if the staff's user is immune to lightning strikes while using the staff. Called on both the client and the server by Staff Mod.

Parameters

staffStack

The item stack of the staff

world

The world the user is in

user

The player, which holds the staff

hand

The hand of the user, in which the staff is