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

[Feature Request]: The ability to add custom elements to a specific RebornCore BlockEntity #182

Open ghost opened 2 years ago

ghost commented 2 years ago

I would like to be able to add custom elements to specific block entities based on RebornCore. So, for example, with my teleporter, I have it set to respond to a redstone signal. However, the user may want to change the setting.

As it appears the element map is private and static, it looks like if I was to override the private nature of the map anyway, it'd cause every RebornCore based machine to have the custom element I want to add. However, the custom element would only make sense for my teleporter. Having the ability to implement an interface that checks for custom elements in a block entity on top of the existing elements (or even in place of them) would be a nice feature to have. https://github.com/TechReborn/RebornCore/blob/4be803f24979416c5dd3e0dbe81237786328f010/src/main/java/reborncore/common/blockentity/RedstoneConfiguration.java#L233

2021-10-18_22 24 23