getAttribute

fun getAttribute(entity: LivingEntity, attribute: Holder<Attribute>): Double

Get an attribute value from a LivingEntity.

Return

current attribute value

Parameters

entity

the entity

attribute

attribute holder to read