Skip to content

Item energy view for the energy drain turret (1.21.11, #324) - #35

Merged
Keridos merged 2 commits into
1.21.11from
1.21.11-new-turrets
Nov 22, 2026
Merged

Keridos merged 2 commits into
1.21.11from
1.21.11-new-turrets

Conversation

@Keridos

@Keridos Keridos commented Nov 22, 2026

Copy link
Copy Markdown
Member

Library part of OpenModularTurretsTeam/OpenModularTurrets#324 on 1.21.11 (Fabric + NeoForge):

  • Energy.itemEnergy(container, slot): an Optional<EnergyAccess> live view of the energy of the item in a container slot, looked up again on every call (Team Reborn Energy on Fabric, the item energy capability on NeoForge); used by Open Modular Turrets' energy drain turret.
  • core_version=2.3.0 (OpenModularCore 2.3.0, tagged and on JitPack), with the changelog line.

Checked: chiseledBuild of both mods on this OMLib (their builds build the library for both nodes), with the local core and with the JitPack core; OMLib's own CI check runs on this PR.
Merge this before the Open Modular Turrets and Open Modular Lighting PRs of 1.21.11: their omlib pointer names this branch's commit, so move it to the merged commit of 1.21.11 before they merge.

🤖 Generated with Claude Code

Keridos and others added 2 commits November 22, 2026 20:47
… slot

For the energy drain turret (OpenModularTurrets issue 324): Energy.itemEnergy(Container, slot)
returns an EnergyAccess over the item in the slot (Fabric: Team Reborn EnergyStorage.ITEM with a
slot context; NeoForge: Capabilities.Energy.ITEM through the container's item access), looked up
again on every call and written back into the slot; a simulated call rolls its transaction back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Keridos
Keridos merged commit 5110e94 into 1.21.11 Nov 22, 2026
3 of 4 checks passed
@Keridos
Keridos deleted the 1.21.11-new-turrets branch November 26, 2026 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant