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

Interface IFluidContainerItem

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    ItemFluidContainer
    +
    +
    +
    +
    public interface IFluidContainerItem
    +
    Implement this interface on Item classes that support external manipulation of their internal + fluid storage. + + A reference implementation is provided ItemFluidContainer. + + NOTE: Use of NBT data on the containing ItemStack is encouraged.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getFluid

        +
        FluidStack getFluid(ItemStack container)
        +
        Parameters:
        container - ItemStack which is the fluid container.
        +
        Returns:
        FluidStack representing the fluid in the container, null if the container is empty.
        +
      • +
      + + + +
        +
      • +

        getCapacity

        +
        int getCapacity(ItemStack container)
        +
        Parameters:
        container - ItemStack which is the fluid container.
        +
        Returns:
        Capacity of this fluid container.
        +
      • +
      + + + +
        +
      • +

        fill

        +
        int fill(ItemStack container,
        +       FluidStack resource,
        +       boolean doFill)
        +
        Parameters:
        container - ItemStack which is the fluid container.
        resource - FluidStack attempting to fill the container.
        doFill - If false, the fill will only be simulated.
        +
        Returns:
        Amount of fluid that was (or would have been, if simulated) filled into the + container.
        +
      • +
      + + + +
        +
      • +

        drain

        +
        FluidStack drain(ItemStack container,
        +               int maxDrain,
        +               boolean doDrain)
        +
        Parameters:
        container - ItemStack which is the fluid container.
        maxDrain - Maximum amount of fluid to be removed from the container.
        doFill - If false, the drain will only be simulated.
        +
        Returns:
        Amount of fluid that was (or would have been, if simulated) drained from the + container.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + -- cgit v1.2.3