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
ItemStacks.-
Method Summary
Modifier and TypeMethodDescriptionstatic FluidKeygetContainedFluid(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
FluidKeyif theItemStackcontained any, orFluidKeys.EMPTYif none were present.
-