
Forge's IEnergyStorage capability is not exposed for the null/internal side
SquidDev opened this issue ยท 3 comments
Calling tile.hasCapability(CapabilityEnergy.ENERGY, null)
returns null
for EnderIO tiles, rather than the tile's internal energy buffer*. This makes it harder for mods which do not have a general sense of "direction" to interact with EnderIO tiles.
For instance, see InternalPoweredTileWrapper
:
Ideally this check would be facing == null || tile.canConnectEnergy(facing)
Affected Versions:
- EnderIO: 1.12.2-5.0.31
- EnderCore: 1.12.2-0.5.37
- Minecraft: 1.12
- Forge: 14.23.4.2750
- SpongeForge? No
- Optifine? No
- Single Player, development environment
* OK, I realise the behaviour of a null direction is somewhat contentious. I've generally seen it used to mean "everything", but understand if not doing so is an intentional decision.
I've generally seen it used as an "internal view" of the object, rather than internal use only. I'd agree that the docs are a little ambiguous though - LexManos has suggested describing it as an "unknown/unimportant side" instead.