getBaseAttribute

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

Get base attribute value from a LivingEntity.

Return

base value or null if attribute missing

Parameters

entity

the entity

attribute

attribute holder to read