Allow mods to expose tooltip information for their fluids
UpcraftLP opened this issue · 4 comments
UpcraftLP 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.
Devan-Kerman commented
so, add a toString to FluidVolume?
Devan-Kerman commented
toText*
Devan-Kerman commented
#4 done
UpcraftLP 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()
)