allowDeath

abstract boolean allowDeath(ServerPlayerEntity player, DamageSource damageSource, float damageAmount)

Called when a player takes fatal damage (before totems of undying can take effect).

Return

true if the death should go ahead, false otherwise.

Parameters

player

the player

damageSource

the fatal damage damageSource

damageAmount

the damageAmount of damage that has killed the player

Sources

jvm source
Link copied to clipboard