Cardinal-Components-API
Cardinal-Components-API copied to clipboard
Immutable Components
wip...
- methods on
ImmutableComponentKeyto get data / modify data without directly using theImmutableComponentWrapper - support for attaching to things other than entities (lol)
- support for registering custom
ImmutableComponentHookTypes? - much cleaner code (it's written to work rn, not to be readable lol)
- on that note, comments / javadoc... things which im not sure how im gonna fix them:
- support for registering listeners from client side
- NAMES !!
- immutablecomponent is STUPID
- datacomponent would be perfect but its ALREADY TAKEN by mojang
- ~~uhhh idk what to call these callback things like on tick, and you can tell because they're called like 3 different things in code~~ called them hooks
- immutablecomponent is STUPID
- hooks are associated to a pair of (component ID, owner class) but this isn't uniquely identifiable of a component implementation (b/c of entity predicated factories and stuff)