FabLabsMC / FluidApi

Fractional fluid volumes and transfer. Experimental; names not final.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow mods to expose tooltip information for their fluids

UpcraftLP opened this issue · comments

commented

I think mods should be able to expose tooltips for their fluids, so that GUIs can make use of that (for tanks, mainly).

The accepted workaround for this in Forge land would be to grab a bucket ItemStack for a given fluid, then get the tooltip from that. I think we can do better than that, and expose tooltips natively, if a GUI wishes to display them.

so, add a toString to FluidVolume?

toText*

commented

No, not a toText() method on FluidVolume, but rather a method that provides a List of Text objects, for rendering tooltips. Also on the fluid itself, not on the volume holding it.

(Similar to Item#appendTooltip())