TechReborn / RebornCore

Reborn Core is a library used for many of the Tech Reborn team's mods, including Tech Reborn, Quantum Storage, Fluxed Redstone, Hardcore Map Reset, and many more.
MIT License
44 stars 51 forks source link

Suggestion: Create Interface for MachineBaseBlockEntity #141

Open ghost opened 4 years ago

ghost commented 4 years ago

We are using RebornCore for our new mod ChaosStorage. It has proven to be very useful because it solves a lot of common problems, but during development we ran into the limitation that many helpers expect that the MachineBaseBlockEntity class is used.

In our case this requires us to decide between being able to share many common Overrides for BlockEntity classes, which have to be in a class that extends BlockEntity, and using most of the RebornCore helpers.

My proposal is to add a new Interface IMachineBaseBlockEntity or similar that has all the method heads that are accessed by the RebornCore helpers. For mods that use the MachineBaseBlockEntity included in RebornCore nothing would change, but other mods could have their own class and still use the helpers.

If this sounds ok to you I would prepare a pull request to implement this.