NerolandCore 1.12.0 - NeoForge 26.2
Curse Maven Snippet
What's new
Fluid interoperability with the rest of the modded ecosystem. Additive only — no existing API signature, tag, id, capability or config key changes.
Added
Standard fluid-capability bridge on all three loaders
NeoForgeFluidHandlers,ForgeFluidHandlersandFabricFluidHandlersadapt Core'sNeroFluidStorageto and from each loader's own fluid surface — NeoForgeCapabilities.Fluid.BLOCK(aResourceHandler<FluidResource>), ForgeForgeCapabilities.FLUID_HANDLER(IFluidHandler), and FabricFluidStorage.SIDED(Storage<FluidVariant>). This is the fluid twin of the Forge-Energy bridge added in1.3.2, and it closes the "deferred enhancement"NeroFluidStoragehas carried since1.1.0.FluidLookup.find(...)now falls back to the loader's standard fluid capability when a block exposes no Nero fluid, so Core tanks and downstream machines treat third-party fluid pipes and tanks as first-class neighbours.- Core's Fluid Tank, Creative Fluid Tank and Trash Can are additionally exposed on the standard fluid capability, so any mod's pipes fill and drain them directly — the same way the Item Store has always ridden the standard item handler.
- Transactions are honoured in both directions: the NeoForge adapter is a
SnapshotJournaland the Fabric adapter aSnapshotParticipant, so an aborted transfer rolls a Nero tank back exactly. SideConfig.Builder#preset(Channel, SidePreset)— a per-channel starting preset, for machines whose channels want different layouts (power and fluid in on every face while gas leaves on every face, which no single preset expresses).resetToPresetrestores each channel to its own preset.
Notes
- Units. NeoForge and Forge count millibuckets, as Core does, so nothing is converted there. Fabric counts droplets at 81 per mB; the adapter floors, and moves fluid in two phases (probe in a rolled-back transaction, then transfer exactly the whole-millibucket amount) so no sub-millibucket remainder is created or lost at the seam.
- Resources carrying data components are refused rather than silently stripped: a
NeroFluidStorageholds a bare fluid.
This mod has no additional files
