hasAttribute

fun hasAttribute(entity: LivingEntity, attribute: Holder<Attribute>): Boolean

Check if a LivingEntity has a given attribute.

Return

true if attribute present

Parameters

entity

the entity

attribute

attribute holder to check