From dc3df3edd5843bde0c1335d6a8e460b2c832aa48 Mon Sep 17 00:00:00 2001 From: Foghrye4 Date: Sat, 17 Jun 2017 08:12:18 +0300 Subject: full project files --- javadoc/net/minecraftforge/fluids/FluidTank.html | 507 +++++++++++++++++++++++ 1 file changed, 507 insertions(+) create mode 100644 javadoc/net/minecraftforge/fluids/FluidTank.html (limited to 'javadoc/net/minecraftforge/fluids/FluidTank.html') diff --git a/javadoc/net/minecraftforge/fluids/FluidTank.html b/javadoc/net/minecraftforge/fluids/FluidTank.html new file mode 100644 index 0000000..bd7c390 --- /dev/null +++ b/javadoc/net/minecraftforge/fluids/FluidTank.html @@ -0,0 +1,507 @@ + + + + + +FluidTank (Forge API) + + + + + + + +
+ + + + + +
+ + + +
+
net.minecraftforge.fluids
+

Class FluidTank

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    IFluidTank
    +
    +
    +
    +
    public class FluidTank
    +extends java.lang.Object
    +implements IFluidTank
    +
    Reference implementation of IFluidTank. Use/extend this or implement your own.
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        FluidTank

        +
        public FluidTank(int capacity)
        +
      • +
      + + + +
        +
      • +

        FluidTank

        +
        public FluidTank(FluidStack stack,
        +         int capacity)
        +
      • +
      + + + +
        +
      • +

        FluidTank

        +
        public FluidTank(Fluid fluid,
        +         int amount,
        +         int capacity)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + + + + + +
        +
      • +

        setFluid

        +
        public void setFluid(FluidStack fluid)
        +
      • +
      + + + +
        +
      • +

        setCapacity

        +
        public void setCapacity(int capacity)
        +
      • +
      + + + +
        +
      • +

        getFluid

        +
        public FluidStack getFluid()
        +
        +
        Specified by:
        +
        getFluid in interface IFluidTank
        +
        Returns:
        FluidStack representing the fluid in the tank, null if the tank is empty.
        +
      • +
      + + + +
        +
      • +

        getFluidAmount

        +
        public int getFluidAmount()
        +
        +
        Specified by:
        +
        getFluidAmount in interface IFluidTank
        +
        Returns:
        Current amount of fluid in the tank.
        +
      • +
      + + + +
        +
      • +

        getCapacity

        +
        public int getCapacity()
        +
        +
        Specified by:
        +
        getCapacity in interface IFluidTank
        +
        Returns:
        Capacity of this fluid tank.
        +
      • +
      + + + +
        +
      • +

        getInfo

        +
        public FluidTankInfo getInfo()
        +
        Description copied from interface: IFluidTank
        +
        Returns a wrapper object FluidTankInfo containing the capacity of the tank and the + FluidStack it holds. + + Should prevent manipulation of the IFluidTank. See FluidTank.
        +
        +
        Specified by:
        +
        getInfo in interface IFluidTank
        +
        Returns:
        State information for the IFluidTank.
        +
      • +
      + + + +
        +
      • +

        fill

        +
        public int fill(FluidStack resource,
        +       boolean doFill)
        +
        +
        Specified by:
        +
        fill in interface IFluidTank
        +
        Parameters:
        resource - FluidStack attempting to fill the tank.
        doFill - If false, the fill will only be simulated.
        +
        Returns:
        Amount of fluid that was accepted by the tank.
        +
      • +
      + + + +
        +
      • +

        drain

        +
        public FluidStack drain(int maxDrain,
        +               boolean doDrain)
        +
        +
        Specified by:
        +
        drain in interface IFluidTank
        +
        Parameters:
        maxDrain - Maximum amount of fluid to be removed from the container.
        +
        Returns:
        Amount of fluid that was removed from the tank.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + -- cgit v1.2.3