SpongeForge icon indicating copy to clipboard operation
SpongeForge copied to clipboard

Add Forge Energy capability to the DataAPI in the same manor as the Forge Fluid capability

Open voidstarr opened this issue 3 years ago • 1 comments

I'd like to manipulate the Forge Energy storage of entities via SpongeAPI. Since this is dependent on Forge, I'm not sure how this would affect SpongeVanilla via the unified SpongeAPI.

This would require adding Keys.ENERGY_LEVEL (perhaps some other keys?) org.spongepowered.mod.data.ForgeEnergyStorageDataProcessor org.spongepowered.api.extra.energy.* for exposed types and manipulators

I'm sure I'm missing a lot of detail, but I would love more input on this.

Does SpongeCommon need any implementation for this or can this live entirely within SpongeForge and SpongeAPI?

voidstarr avatar Mar 29 '21 19:03 voidstarr

Does SpongeCommon need any implementation

You'd basically be implementing it for whatever Redstone is considered as energy "out of the box". There's an "override" system in place where you can effectively mark the common implication as useless compared to the forge impl.

gabizou avatar Apr 30 '21 06:04 gabizou