isImmuneTo

abstract fun isImmuneTo(block: BlockState): Boolean

Checks if entities of this type are immune (they will not be damaged by) the given block.

Return

true if entities are immune to the block, false otherwise

Parameters

block

the block to check