Use mixin to shadow a cache for frequently used capability values to PlayerEntity
maxanier opened this issue ยท 0 comments
Problem
- Very often
getCapability
-> getSomeValue` - Also
getCapability
->getLevel
-> `getCapability - Also in rendering
Suggestion
- Shadow a
VampireAttributes
andHunterAttributes
into PlayerEntity - Only contains primitives values and serves as a cache
- Access this during rendering and other frequently (and non critical) events
- Always update this cache when changing the source value