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

Class FluidContainerRegistry

+
+
+ +
+
    +
  • +
    +
    +
    public abstract class FluidContainerRegistry
    +extends java.lang.Object
    +
    Register simple items that contain fluids here. Useful for buckets, bottles, and things that have + ID/metadata mappings. + + For more complex items, use IFluidContainerItem instead.
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        registerFluidContainer

        +
        public static boolean registerFluidContainer(FluidStack stack,
        +                             ItemStack filledContainer,
        +                             ItemStack emptyContainer)
        +
        Register a new fluid containing item.
        +
        Parameters:
        stack - FluidStack containing the type and amount of the fluid stored in the item.
        filledContainer - ItemStack representing the container when it is full.
        emptyContainer - ItemStack representing the container when it is empty.
        +
        Returns:
        True if container was successfully registered; false if it already is.
        +
      • +
      + + + +
        +
      • +

        registerFluidContainer

        +
        public static boolean registerFluidContainer(Fluid fluid,
        +                             ItemStack filledContainer,
        +                             ItemStack emptyContainer)
        +
        Register a new fluid containing item. The item is assumed to hold 1000 mB of fluid. Also + registers the Fluid if possible.
        +
        Parameters:
        fluid - Fluid type that is stored in the item.
        filledContainer - ItemStack representing the container when it is full.
        emptyContainer - ItemStack representing the container when it is empty.
        +
        Returns:
        True if container was successfully registered; false if it already is.
        +
      • +
      + + + +
        +
      • +

        registerFluidContainer

        +
        public static boolean registerFluidContainer(FluidStack stack,
        +                             ItemStack filledContainer)
        +
        Register a new fluid containing item that does not have an empty container.
        +
        Parameters:
        stack - FluidStack containing the type and amount of the fluid stored in the item.
        filledContainer - ItemStack representing the container when it is full.
        +
        Returns:
        True if container was successfully registered; false if it already is.
        +
      • +
      + + + +
        +
      • +

        registerFluidContainer

        +
        public static boolean registerFluidContainer(Fluid fluid,
        +                             ItemStack filledContainer)
        +
        Register a new fluid containing item that does not have an empty container. The item is + assumed to hold 1000 mB of fluid. Also registers the Fluid if possible.
        +
        Parameters:
        fluid - Fluid type that is stored in the item.
        filledContainer - ItemStack representing the container when it is full.
        +
        Returns:
        True if container was successfully registered; false if it already is.
        +
      • +
      + + + + + + + +
        +
      • +

        getFluidForFilledItem

        +
        public static FluidStack getFluidForFilledItem(ItemStack container)
        +
        Determines the fluid type and amount inside a container.
        +
        Parameters:
        container - The fluid container.
        +
        Returns:
        FluidStack representing stored fluid.
        +
      • +
      + + + +
        +
      • +

        fillFluidContainer

        +
        public static ItemStack fillFluidContainer(FluidStack fluid,
        +                           ItemStack container)
        +
        Attempts to fill an empty container with a fluid. + + NOTE: Returns null on fail, NOT the empty container.
        +
        Parameters:
        fluid - FluidStack containing the type and amount of fluid to fill.
        container - ItemStack representing the empty container.
        +
        Returns:
        Filled container if successful, otherwise null.
        +
      • +
      + + + +
        +
      • +

        drainFluidContainer

        +
        public static ItemStack drainFluidContainer(ItemStack container)
        +
        Attempts to empty a full container.
        +
        Parameters:
        container - ItemStack representing the full container.
        +
        Returns:
        Empty container if successful, otherwise null.
        +
      • +
      + + + +
        +
      • +

        getContainerCapacity

        +
        public static int getContainerCapacity(ItemStack container)
        +
        Determines the capacity of a full container.
        +
        Parameters:
        container - The full container.
        +
        Returns:
        The containers capacity, or 0 if the ItemStack does not represent + a registered container.
        +
      • +
      + + + +
        +
      • +

        getContainerCapacity

        +
        public static int getContainerCapacity(FluidStack fluid,
        +                       ItemStack container)
        +
        Determines the capacity of a container.
        +
        Parameters:
        fluid - FluidStack containing the type of fluid the capacity should be + determined for (ignored for full containers).
        container - The container (full or empty).
        +
        Returns:
        The containers capacity, or 0 if the ItemStack does not represent + a registered container or the FluidStack is not registered with + the empty container.
        +
      • +
      + + + +
        +
      • +

        containsFluid

        +
        public static boolean containsFluid(ItemStack container,
        +                    FluidStack fluid)
        +
        Determines if a container holds a specific fluid.
        +
      • +
      + + + +
        +
      • +

        isBucket

        +
        public static boolean isBucket(ItemStack container)
        +
      • +
      + + + +
        +
      • +

        isContainer

        +
        public static boolean isContainer(ItemStack container)
        +
      • +
      + + + +
        +
      • +

        isEmptyContainer

        +
        public static boolean isEmptyContainer(ItemStack container)
        +
      • +
      + + + +
        +
      • +

        isFilledContainer

        +
        public static boolean isFilledContainer(ItemStack container)
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + -- cgit v1.2.3