Cardinal-Components-API icon indicating copy to clipboard operation
Cardinal-Components-API copied to clipboard

Immutable Components

Open williambl opened this issue 1 year ago • 0 comments

wip...

  • methods on ImmutableComponentKey to get data / modify data without directly using the ImmutableComponentWrapper
  • 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
  • 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)

williambl avatar Nov 18 '24 16:11 williambl