Create

Create

86M Downloads

Modded storages on Moving Contraptions

juh9870 opened this issue ยท 2 comments

commented

Currently, only a limited amount of modded storage is supported by moving contraptions, and it is impossible to write an addon mod to add more support without using mixins, so I suggest a couple of changes to resolve this situation:

  1. Allow serialization and deserialization of custom ItemStackHandler's, as currently all custom subclasses are deserialized as base ItemStackHandler, losing all custom logic in process. I suggest serializing the handler class name, and upon deserialization try to instantiate a custom subclass using the default constructor via reflection. If it fails, fallback to using the regular ItemStackHandler
  2. Allow registration of custom modules that dictate how specific modded storages are removed from world, placed in world, and provide custom ItemStackHandler instead of getting default storage capability.

An example of these two points can be seen in my WIP addon that uses mixins to implement them https://github.com/juh9870/PoopTrain
Please tell me if you have any feedback and if I should try making a PR, implementing these two points.

commented

This issue has been marked as stale because it has been inactive for 3 weeks. It will be closed if it remains inactive for another 3 weeks.

commented

This issue has been closed since it has been inactive for 3 weeks since it was marked as stale.