Package | Description |
---|---|
net.minecraftforge.fluids | |
net.minecraftforge.fluids.capability | |
net.minecraftforge.fluids.capability.templates | |
net.minecraftforge.fluids.capability.wrappers |
Modifier and Type | Field and Description |
---|---|
FluidStack |
FluidTankInfo.fluid |
protected FluidStack |
FluidTank.fluid |
private FluidStack |
FluidEvent.fluid |
protected FluidStack |
BlockFluidClassic.stack |
Modifier and Type | Method and Description |
---|---|
FluidStack |
FluidStack.copy() |
FluidStack |
FluidTank.drain(FluidStack resource,
boolean doDrain) |
FluidStack |
IFluidTank.drain(int maxDrain,
boolean doDrain) |
FluidStack |
FluidTank.drain(int maxDrain,
boolean doDrain) |
FluidStack |
BlockFluidClassic.drain(World world,
BlockPos pos,
boolean doDrain) |
FluidStack |
IFluidBlock.drain(World world,
BlockPos pos,
boolean doDrain)
Attempt to drain the block.
|
FluidStack |
BlockFluidFinite.drain(World world,
BlockPos pos,
boolean doDrain) |
FluidStack |
FluidTank.drainInternal(FluidStack resource,
boolean doDrain)
Use this method to bypass the restrictions from
FluidTank.canDrainFluidType(FluidStack)
Meant for use by the owner of the tank when they have FluidTank.canDrain() set to false}. |
FluidStack |
FluidTank.drainInternal(int maxDrain,
boolean doDrain)
Use this method to bypass the restrictions from
FluidTank.canDrainFluidType(FluidStack)
Meant for use by the owner of the tank when they have FluidTank.canDrain() set to false}. |
FluidStack |
IFluidTank.getFluid() |
FluidStack |
FluidTank.getFluid() |
FluidStack |
FluidEvent.getFluid() |
FluidStack |
UniversalBucket.getFluid(ItemStack container) |
static FluidStack |
FluidUtil.getFluidContained(ItemStack container)
Helper method to get the fluid contained in an itemStack
|
static FluidStack |
FluidRegistry.getFluidStack(java.lang.String fluidName,
int amount) |
static FluidStack |
FluidStack.loadFluidStackFromNBT(NBTTagCompound nbt)
This provides a safe method for retrieving a FluidStack - if the Fluid is invalid, the stack
will return as null.
|
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.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
FluidStack.areFluidStackTagsEqual(FluidStack stack1,
FluidStack stack2)
Determines if the NBT Tags are equal.
|
boolean |
FluidTank.canDrainFluidType(FluidStack fluid)
Returns true if the tank can drain out this type of fluid.
|
boolean |
FluidTank.canFillFluidType(FluidStack fluid)
Returns true if the tank can be filled with this type of fluid.
|
boolean |
FluidStack.containsFluid(FluidStack other)
Determines if the Fluids are equal and this stack is larger.
|
boolean |
Fluid.doesVaporize(FluidStack fluidStack)
Determines if this fluid should vaporize in dimensions where water vaporizes when placed.
|
FluidStack |
FluidTank.drain(FluidStack resource,
boolean doDrain) |
FluidStack |
FluidTank.drainInternal(FluidStack resource,
boolean doDrain)
Use this method to bypass the restrictions from
FluidTank.canDrainFluidType(FluidStack)
Meant for use by the owner of the tank when they have FluidTank.canDrain() set to false}. |
int |
IFluidTank.fill(FluidStack resource,
boolean doFill) |
int |
FluidTank.fill(FluidStack resource,
boolean doFill) |
int |
FluidTank.fillInternal(FluidStack resource,
boolean doFill)
Use this method to bypass the restrictions from
FluidTank.canFillFluidType(FluidStack)
Meant for use by the owner of the tank when they have set to false . |
int |
Fluid.getColor(FluidStack stack) |
int |
Fluid.getDensity(FluidStack stack) |
SoundEvent |
Fluid.getEmptySound(FluidStack stack) |
static ItemStack |
FluidUtil.getFilledBucket(FluidStack fluidStack) |
SoundEvent |
Fluid.getFillSound(FluidStack stack) |
ResourceLocation |
Fluid.getFlowing(FluidStack stack) |
static java.lang.String |
FluidRegistry.getFluidName(FluidStack stack) |
java.lang.String |
Fluid.getLocalizedName(FluidStack stack)
Returns the localized name of this fluid.
|
int |
Fluid.getLuminosity(FluidStack stack) |
static java.lang.String |
FluidRegistry.getModId(FluidStack fluidStack) |
EnumRarity |
Fluid.getRarity(FluidStack stack) |
ResourceLocation |
Fluid.getStill(FluidStack stack) |
int |
Fluid.getTemperature(FluidStack stack) |
java.lang.String |
Fluid.getUnlocalizedName(FluidStack stack)
A FluidStack sensitive version of getUnlocalizedName
|
int |
Fluid.getViscosity(FluidStack stack) |
boolean |
FluidStack.isFluidEqual(FluidStack other)
Determines if the FluidIDs and NBT Tags are equal.
|
boolean |
FluidStack.isFluidStackIdentical(FluidStack other)
Determines if the FluidIDs, Amounts, and NBT Tags are all equal.
|
private boolean |
FluidStack.isFluidStackTagEqual(FluidStack other) |
boolean |
Fluid.isGaseous(FluidStack stack) |
int |
BlockFluidClassic.place(World world,
BlockPos pos,
FluidStack fluidStack,
boolean doPlace) |
int |
IFluidBlock.place(World world,
BlockPos pos,
FluidStack fluidStack,
boolean doPlace)
Attempts to place the block at a given position.
|
int |
BlockFluidFinite.place(World world,
BlockPos pos,
FluidStack fluidStack,
boolean doPlace) |
void |
FluidTank.setFluid(FluidStack fluid) |
BlockFluidClassic |
BlockFluidClassic.setFluidStack(FluidStack stack) |
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 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.
|
static FluidActionResult |
FluidUtil.tryPlaceFluid(EntityPlayer player,
World world,
BlockPos pos,
ItemStack container,
FluidStack resource)
ItemStack version of
FluidUtil.tryPlaceFluid(EntityPlayer, World, BlockPos, IFluidHandler, FluidStack) . |
void |
Fluid.vaporize(EntityPlayer player,
World worldIn,
BlockPos pos,
FluidStack fluidStack)
Called instead of placing the fluid block if
WorldProvider.doesWaterVaporize() and Fluid.doesVaporize(FluidStack) are true. |
Constructor and Description |
---|
FluidDrainingEvent(FluidStack fluid,
World world,
BlockPos pos,
IFluidTank tank,
int amount) |
FluidEvent(FluidStack fluid,
World world,
BlockPos pos) |
FluidFillingEvent(FluidStack fluid,
World world,
BlockPos pos,
IFluidTank tank,
int amount) |
FluidMotionEvent(FluidStack fluid,
World world,
BlockPos pos) |
FluidSpilledEvent(FluidStack fluid,
World world,
BlockPos pos) |
FluidStack(FluidStack stack,
int amount) |
FluidTank(FluidStack fluidStack,
int capacity) |
FluidTankInfo(FluidStack fluid,
int capacity) |
Modifier and Type | Field and Description |
---|---|
private FluidStack |
FluidTankProperties.contents |
Modifier and Type | Method and Description |
---|---|
FluidStack |
IFluidHandler.drain(FluidStack resource,
boolean doDrain)
Drains fluid out of internal tanks, distribution is left entirely to the IFluidHandler.
|
FluidStack |
IFluidHandler.drain(int maxDrain,
boolean doDrain)
Drains fluid out of internal tanks, distribution is left entirely to the IFluidHandler.
|
FluidStack |
FluidTankPropertiesWrapper.getContents() |
FluidStack |
IFluidTankProperties.getContents() |
FluidStack |
FluidTankProperties.getContents() |
Modifier and Type | Method and Description |
---|---|
boolean |
FluidTankPropertiesWrapper.canDrainFluidType(FluidStack fluidStack) |
boolean |
IFluidTankProperties.canDrainFluidType(FluidStack fluidStack)
Returns true if the tank can drain out this a specific of fluid.
|
boolean |
FluidTankProperties.canDrainFluidType(FluidStack fluidStack) |
boolean |
FluidTankPropertiesWrapper.canFillFluidType(FluidStack fluidStack) |
boolean |
IFluidTankProperties.canFillFluidType(FluidStack fluidStack)
Returns true if the tank can be filled with a specific type of fluid.
|
boolean |
FluidTankProperties.canFillFluidType(FluidStack fluidStack) |
FluidStack |
IFluidHandler.drain(FluidStack resource,
boolean doDrain)
Drains fluid out of internal tanks, distribution is left entirely to the IFluidHandler.
|
int |
IFluidHandler.fill(FluidStack resource,
boolean doFill)
Fills fluid into internal tanks, distribution is left entirely to the IFluidHandler.
|
Constructor and Description |
---|
FluidTankProperties(FluidStack contents,
int capacity) |
FluidTankProperties(FluidStack contents,
int capacity,
boolean canFill,
boolean canDrain) |
Modifier and Type | Method and Description |
---|---|
FluidStack |
FluidHandlerConcatenate.drain(FluidStack resource,
boolean doDrain) |
FluidStack |
VoidFluidHandler.drain(FluidStack resource,
boolean doDrain) |
FluidStack |
EmptyFluidHandler.drain(FluidStack resource,
boolean doDrain) |
FluidStack |
FluidHandlerItemStack.drain(FluidStack resource,
boolean doDrain) |
FluidStack |
FluidHandlerItemStackSimple.drain(FluidStack resource,
boolean doDrain) |
FluidStack |
FluidHandlerFluidMap.drain(FluidStack resource,
boolean doDrain) |
FluidStack |
FluidHandlerConcatenate.drain(int maxDrain,
boolean doDrain) |
FluidStack |
VoidFluidHandler.drain(int maxDrain,
boolean doDrain) |
FluidStack |
EmptyFluidHandler.drain(int maxDrain,
boolean doDrain) |
FluidStack |
FluidHandlerItemStack.drain(int maxDrain,
boolean doDrain) |
FluidStack |
FluidHandlerItemStackSimple.drain(int maxDrain,
boolean doDrain) |
FluidStack |
FluidHandlerFluidMap.drain(int maxDrain,
boolean doDrain) |
FluidStack |
VoidFluidHandler.getFluid() |
FluidStack |
EmptyFluidHandler.getFluid() |
FluidStack |
FluidHandlerItemStack.getFluid() |
FluidStack |
FluidHandlerItemStackSimple.getFluid() |
Modifier and Type | Method and Description |
---|---|
boolean |
FluidHandlerItemStack.canDrainFluidType(FluidStack fluid) |
boolean |
FluidHandlerItemStackSimple.canDrainFluidType(FluidStack fluid) |
boolean |
FluidHandlerItemStack.canFillFluidType(FluidStack fluid) |
boolean |
FluidHandlerItemStackSimple.canFillFluidType(FluidStack fluid) |
FluidStack |
FluidHandlerConcatenate.drain(FluidStack resource,
boolean doDrain) |
FluidStack |
VoidFluidHandler.drain(FluidStack resource,
boolean doDrain) |
FluidStack |
EmptyFluidHandler.drain(FluidStack resource,
boolean doDrain) |
FluidStack |
FluidHandlerItemStack.drain(FluidStack resource,
boolean doDrain) |
FluidStack |
FluidHandlerItemStackSimple.drain(FluidStack resource,
boolean doDrain) |
FluidStack |
FluidHandlerFluidMap.drain(FluidStack resource,
boolean doDrain) |
int |
FluidHandlerConcatenate.fill(FluidStack resource,
boolean doFill) |
int |
VoidFluidHandler.fill(FluidStack resource,
boolean doFill) |
int |
EmptyFluidHandler.fill(FluidStack resource,
boolean doFill) |
int |
FluidHandlerItemStack.fill(FluidStack resource,
boolean doFill) |
int |
FluidHandlerItemStackSimple.fill(FluidStack resource,
boolean doFill) |
int |
FluidHandlerFluidMap.fill(FluidStack resource,
boolean doFill) |
protected void |
FluidHandlerItemStack.setFluid(FluidStack fluid) |
protected void |
FluidHandlerItemStackSimple.setFluid(FluidStack fluid) |
Modifier and Type | Method and Description |
---|---|
FluidStack |
FluidBucketWrapper.drain(FluidStack resource,
boolean doDrain) |
FluidStack |
BlockLiquidWrapper.drain(FluidStack resource,
boolean doDrain) |
FluidStack |
FluidBlockWrapper.drain(FluidStack resource,
boolean doDrain) |
FluidStack |
FluidBucketWrapper.drain(int maxDrain,
boolean doDrain) |
FluidStack |
BlockLiquidWrapper.drain(int maxDrain,
boolean doDrain) |
FluidStack |
FluidBlockWrapper.drain(int maxDrain,
boolean doDrain) |
FluidStack |
FluidBucketWrapper.getFluid() |
private FluidStack |
BlockLiquidWrapper.getStack(IBlockState blockState) |
Modifier and Type | Method and Description |
---|---|
boolean |
FluidBucketWrapper.canFillFluidType(FluidStack fluidStack) |
FluidStack |
FluidBucketWrapper.drain(FluidStack resource,
boolean doDrain) |
FluidStack |
BlockLiquidWrapper.drain(FluidStack resource,
boolean doDrain) |
FluidStack |
FluidBlockWrapper.drain(FluidStack resource,
boolean doDrain) |
int |
BlockWrapper.fill(FluidStack resource,
boolean doFill) |
int |
FluidBucketWrapper.fill(FluidStack resource,
boolean doFill) |
int |
BlockLiquidWrapper.fill(FluidStack resource,
boolean doFill) |
int |
FluidBlockWrapper.fill(FluidStack resource,
boolean doFill) |
protected void |
FluidBucketWrapper.setFluid(FluidStack fluidStack) |