Package | Description |
---|---|
net.minecraftforge.fluids |
Modifier and Type | Field and Description |
---|---|
static FluidActionResult |
FluidActionResult.FAILURE |
Modifier and Type | Method and Description |
---|---|
static FluidActionResult |
FluidUtil.tryEmptyContainer(ItemStack container,
IFluidHandler fluidDestination,
int maxAmount,
EntityPlayer player,
boolean doDrain)
Takes a filled container and tries to empty it into the given tank.
|
static FluidActionResult |
FluidUtil.tryEmptyContainerAndStow(ItemStack container,
IFluidHandler fluidDestination,
IItemHandler inventory,
int maxAmount,
EntityPlayer player)
|
static FluidActionResult |
FluidUtil.tryEmptyContainerAndStow(ItemStack container,
IFluidHandler fluidDestination,
IItemHandler inventory,
int maxAmount,
EntityPlayer player,
boolean doDrain)
Takes an Fluid Container Item, tries to empty it into the fluid handler, and stows it in the given inventory.
|
static FluidActionResult |
FluidUtil.tryFillContainer(ItemStack container,
IFluidHandler fluidSource,
int maxAmount,
EntityPlayer player,
boolean doFill)
Fill a container from the given fluidSource.
|
static FluidActionResult |
FluidUtil.tryFillContainerAndStow(ItemStack container,
IFluidHandler fluidSource,
IItemHandler inventory,
int maxAmount,
EntityPlayer player)
|
static FluidActionResult |
FluidUtil.tryFillContainerAndStow(ItemStack container,
IFluidHandler fluidSource,
IItemHandler inventory,
int maxAmount,
EntityPlayer player,
boolean doFill)
Takes an Fluid Container Item and tries to fill it from the given tank.
|
static FluidActionResult |
FluidUtil.tryPickUpFluid(ItemStack emptyContainer,
EntityPlayer playerIn,
World worldIn,
BlockPos pos,
EnumFacing side)
Attempts to pick up a fluid in the world and put it in an empty container item.
|
static FluidActionResult |
FluidUtil.tryPlaceFluid(EntityPlayer player,
World world,
BlockPos pos,
ItemStack container,
FluidStack resource)
ItemStack version of
FluidUtil.tryPlaceFluid(EntityPlayer, World, BlockPos, IFluidHandler, FluidStack) . |