Package | Description |
---|---|
net.minecraftforge.fluids | |
net.minecraftforge.fluids.capability | |
net.minecraftforge.fluids.capability.templates | |
net.minecraftforge.fluids.capability.wrappers |
Modifier and Type | Class and Description |
---|---|
class |
FluidTank
Reference implementation of
IFluidTank . |
Modifier and Type | Method and Description |
---|---|
private static IFluidHandler |
FluidUtil.getFluidBlockHandler(Fluid fluid,
World world,
BlockPos pos)
Internal method for getting a fluid block handler for placing a fluid.
|
static IFluidHandler |
FluidUtil.getFluidHandler(World world,
BlockPos blockPos,
EnumFacing side)
Helper method to get an IFluidHandler for at a block position.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
FluidUtil.interactWithFluidHandler(EntityPlayer player,
EnumHand hand,
IFluidHandler handler)
Used to handle the common case of a player holding a fluid item and right-clicking on a fluid handler.
|
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.
|
private static FluidStack |
FluidUtil.tryFluidTransfer_Internal(IFluidHandler fluidDestination,
IFluidHandler fluidSource,
FluidStack drainable,
boolean doTransfer)
Internal method for filling a destination fluid handler from a source fluid handler using a specific fluid.
|
static FluidStack |
FluidUtil.tryFluidTransfer(IFluidHandler fluidDestination,
IFluidHandler fluidSource,
FluidStack resource,
boolean doTransfer)
Fill a destination fluid handler from a source fluid handler using a specific fluid.
|
static FluidStack |
FluidUtil.tryFluidTransfer(IFluidHandler fluidDestination,
IFluidHandler fluidSource,
int maxAmount,
boolean doTransfer)
Fill a destination fluid handler from a source fluid handler with a max amount.
|
static boolean |
FluidUtil.tryPlaceFluid(EntityPlayer player,
World world,
BlockPos pos,
IFluidHandler fluidSource,
FluidStack resource)
Tries to place a fluid resource into the world as a block and drains the fluidSource.
|
Modifier and Type | Class and Description |
---|---|
private static class |
CapabilityFluidHandler.DefaultFluidHandlerStorage<T extends IFluidHandler> |
Modifier and Type | Interface and Description |
---|---|
interface |
IFluidHandlerItem
ItemStacks handled by an
IFluidHandler may change, so this class allows
users of the fluid handler to get the container after it has been used. |
Modifier and Type | Field and Description |
---|---|
static Capability<IFluidHandler> |
CapabilityFluidHandler.FLUID_HANDLER_CAPABILITY |
Modifier and Type | Class and Description |
---|---|
class |
EmptyFluidHandler |
class |
FluidHandlerConcatenate
FluidHandlerConcatenate is a template class for concatenating multiple handlers into one.
|
class |
FluidHandlerFluidMap
FluidHandlerFluidMap is a template class for concatenating multiple handlers into one,
where each handler is associated with a different fluid.
|
class |
FluidHandlerItemStack
FluidHandlerItemStack is a template capability provider for ItemStacks.
|
static class |
FluidHandlerItemStack.Consumable
Destroys the container item when it's emptied.
|
static class |
FluidHandlerItemStack.SwapEmpty
Swaps the container item for a different one when it's emptied.
|
class |
FluidHandlerItemStackSimple
FluidHandlerItemStackSimple is a template capability provider for ItemStacks.
|
static class |
FluidHandlerItemStackSimple.Consumable
Destroys the container item when it's emptied.
|
static class |
FluidHandlerItemStackSimple.SwapEmpty
Swaps the container item for a different one when it's emptied.
|
class |
VoidFluidHandler
VoidFluidHandler is a template fluid handler that can be filled indefinitely without ever getting full.
|
Modifier and Type | Field and Description |
---|---|
protected IFluidHandler[] |
FluidHandlerConcatenate.subHandlers |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<Fluid,IFluidHandler> |
FluidHandlerFluidMap.handlers |
Modifier and Type | Method and Description |
---|---|
FluidHandlerFluidMap |
FluidHandlerFluidMap.addHandler(Fluid fluid,
IFluidHandler handler) |
Constructor and Description |
---|
FluidHandlerConcatenate(IFluidHandler... subHandlers) |
Constructor and Description |
---|
FluidHandlerConcatenate(java.util.Collection<IFluidHandler> subHandlers) |
FluidHandlerFluidMap(java.util.Map<Fluid,IFluidHandler> handlers) |
Modifier and Type | Class and Description |
---|---|
class |
BlockLiquidWrapper
Wrapper to handle vanilla Water or Lava as an IFluidHandler.
|
class |
BlockWrapper
Wrapper around any block, only accounts for fluid placement, otherwise the block acts a void.
|
class |
FluidBlockWrapper
Wrapper to handle
IFluidBlock as an IFluidHandler |
class |
FluidBucketWrapper
Wrapper for vanilla and forge buckets.
|