SpongePowered / SpongeForge

A Forge mod that implements SpongeAPI
http://www.spongepowered.org/
MIT License
1.14k stars 306 forks source link

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

Open voidstarr opened 3 years ago

voidstarr commented 3 years ago

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?

gabizou commented 3 years ago

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.