Interface AttributeAccessor
public interface AttributeAccessor
Per-entity accessor that caches the NMS AttributeInstance reference for hot
paths, bypassing the AttributeMap HashMap lookup that LivingEntity.getMaxHealth
does internally. NMS's own dirty-flag caching on AttributeInstance handles the
modifier walk — when nothing changed, getValue() is just a field read.
-
Method Summary
-
Method Details
-
getMaxHealth
float getMaxHealth()
-