Package alexiil.mc.lib.attributes.fluid
Class FluidItemUtil
java.lang.Object
alexiil.mc.lib.attributes.fluid.FluidItemUtil
Various utilities for dealing with fluids contained in single
ItemStack
s.-
Method Summary
Modifier and TypeMethodDescriptionstatic FluidKey
getContainedFluid(net.minecraft.item.ItemStack stack)
Retrieves the first fluid contained by the givenItemStack
.
-
Method Details
-
getContainedFluid
Retrieves the first fluid contained by the givenItemStack
.- Returns:
- The
FluidKey
if theItemStack
contained any, orFluidKeys.EMPTY
if none were present.
-