From 877312184c472d9845e5ef1008bc538f4634059f Mon Sep 17 00:00:00 2001 From: Foghrye4 Date: Thu, 10 Aug 2017 18:50:56 +0300 Subject: fix missing source folder --- .../net/minecraftforge/common/ChestGenHooks.html | 683 --------------------- 1 file changed, 683 deletions(-) delete mode 100644 javadoc/net/minecraftforge/common/ChestGenHooks.html (limited to 'javadoc/net/minecraftforge/common/ChestGenHooks.html') diff --git a/javadoc/net/minecraftforge/common/ChestGenHooks.html b/javadoc/net/minecraftforge/common/ChestGenHooks.html deleted file mode 100644 index 366a209..0000000 --- a/javadoc/net/minecraftforge/common/ChestGenHooks.html +++ /dev/null @@ -1,683 +0,0 @@ - - - - - -ChestGenHooks (Forge API) - - - - - - - -
- - - - - -
- - - -
-
net.minecraftforge.common
-

Class ChestGenHooks

-
-
- -
-
    -
  • -
    -
    -
    public class ChestGenHooks
    -extends java.lang.Object
    -
  • -
-
-
- -
-
-
    -
  • - - - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ChestGenHooks

        -
        public ChestGenHooks(java.lang.String category)
        -
      • -
      - - - -
        -
      • -

        ChestGenHooks

        -
        public ChestGenHooks(java.lang.String category,
        -             WeightedRandomChestContent[] items,
        -             int min,
        -             int max)
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        getInfo

        -
        public static ChestGenHooks getInfo(java.lang.String category)
        -
        Retrieves, or creates the info class for the specified category.
        -
        Parameters:
        category - The category name
        -
        Returns:
        A instance of ChestGenHooks for the specified category.
        -
      • -
      - - - -
        -
      • -

        generateStacks

        -
        public static ItemStack[] generateStacks(java.util.Random rand,
        -                         ItemStack source,
        -                         int min,
        -                         int max)
        -
        Generates an array of items based on the input min/max count. - If the stack can not hold the total amount, it will be split into - stacks of size 1.
        -
        Parameters:
        rand - A random number generator
        source - Source item stack
        min - Minimum number of items
        max - Maximum number of items
        -
        Returns:
        An array containing the generated item stacks
        -
      • -
      - - - - - - - -
        -
      • -

        getCount

        -
        public static int getCount(java.lang.String category,
        -           java.util.Random rand)
        -
      • -
      - - - - - - - -
        -
      • -

        removeItem

        -
        public static void removeItem(java.lang.String category,
        -              ItemStack item)
        -
      • -
      - - - -
        -
      • -

        getOneItem

        -
        public static ItemStack getOneItem(java.lang.String category,
        -                   java.util.Random rand)
        -
      • -
      - - - -
        -
      • -

        addItem

        -
        public void addItem(WeightedRandomChestContent item)
        -
        Adds a new entry into the possible items to generate.
        -
        Parameters:
        item - The item to add.
        -
      • -
      - - - -
        -
      • -

        removeItem

        -
        public void removeItem(ItemStack item)
        -
        Removes all items that match the input item stack, Only metadata and item ID are checked. - If the input item has a metadata of -1, all metadatas will match.
        -
        Parameters:
        item - The item to check
        -
      • -
      - - - -
        -
      • -

        getItems

        -
        public WeightedRandomChestContent[] getItems(java.util.Random rnd)
        -
        Gets an array of all random objects that are associated with this category.
        -
        Returns:
        The random objects
        -
      • -
      - - - -
        -
      • -

        getCount

        -
        public int getCount(java.util.Random rand)
        -
        Gets a random number between countMin and countMax.
        -
        Parameters:
        rand - A RNG
        -
        Returns:
        A random number where countMin <= num <= countMax
        -
      • -
      - - - -
        -
      • -

        getOneItem

        -
        public ItemStack getOneItem(java.util.Random rand)
        -
        Returns a single ItemStack from the possible items in this registry, - Useful if you just want a quick and dirty random Item.
        -
        Parameters:
        rand - A Random Number gen
        -
        Returns:
        A single ItemStack, or null if it could not get one.
        -
      • -
      - - - -
        -
      • -

        getMin

        -
        public int getMin()
        -
      • -
      - - - -
        -
      • -

        getMax

        -
        public int getMax()
        -
      • -
      - - - -
        -
      • -

        setMin

        -
        public void setMin(int value)
        -
      • -
      - - - -
        -
      • -

        setMax

        -
        public void setMax(int value)
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - - - -- cgit v1.2.3