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

Class OreDictionary

+
+
+ +
+
    +
  • +
    +
    +
    public class OreDictionary
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static java.util.ArrayList<ItemStack>EMPTY_LIST 
      static intWILDCARD_VALUE +
      Minecraft changed from -1 to Short.MAX_VALUE in 1.5 release for the "block wildcard".
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      OreDictionary() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      static intgetOreID(ItemStack stack) +
      Deprecated. 
      +
      static intgetOreID(java.lang.String name) +
      Gets the integer ID for the specified ore name.
      +
      static int[]getOreIDs(ItemStack stack) +
      Gets all the integer ID for the ores that the specified item stakc is registered to.
      +
      static java.lang.StringgetOreName(int id) +
      Reverse of getOreID, will not create new entries.
      +
      static java.lang.String[]getOreNames() +
      Retrieves a list of all unique ore names that are already registered.
      +
      static java.util.ArrayList<ItemStack>getOres(java.lang.Integer id) +
      Deprecated. 
      +
      static java.util.ArrayList<ItemStack>getOres(java.lang.String name) +
      Retrieves the ArrayList of items that are registered to this ore type.
      +
      static voidinitVanillaEntries() 
      static booleanitemMatches(ItemStack target, + ItemStack input, + boolean strict) 
      static voidrebakeMap() 
      static voidregisterOre(int id, + Block ore) +
      Deprecated. 
      +
      static voidregisterOre(int id, + Item ore) +
      Deprecated. 
      +
      static voidregisterOre(int id, + ItemStack ore) +
      Deprecated. 
      +
      static voidregisterOre(java.lang.String name, + Block ore) 
      static voidregisterOre(java.lang.String name, + Item ore) 
      static voidregisterOre(java.lang.String name, + ItemStack ore) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        EMPTY_LIST

        +
        public static final java.util.ArrayList<ItemStack> EMPTY_LIST
        +
      • +
      + + + +
        +
      • +

        WILDCARD_VALUE

        +
        public static final int WILDCARD_VALUE
        +
        Minecraft changed from -1 to Short.MAX_VALUE in 1.5 release for the "block wildcard". Use this in case it + changes again.
        +
        See Also:
        Constant Field Values
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        OreDictionary

        +
        public OreDictionary()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        initVanillaEntries

        +
        public static void initVanillaEntries()
        +
      • +
      + + + +
        +
      • +

        getOreID

        +
        public static int getOreID(java.lang.String name)
        +
        Gets the integer ID for the specified ore name. + If the name does not have a ID it assigns it a new one.
        +
        Parameters:
        name - The unique name for this ore 'oreIron', 'ingotIron', etc..
        +
        Returns:
        A number representing the ID for this ore type
        +
      • +
      + + + +
        +
      • +

        getOreName

        +
        public static java.lang.String getOreName(int id)
        +
        Reverse of getOreID, will not create new entries.
        +
        Parameters:
        id - The ID to translate to a string
        +
        Returns:
        The String name, or "Unknown" if not found.
        +
      • +
      + + + +
        +
      • +

        getOreID

        +
        @Deprecated
        +public static int getOreID(ItemStack stack)
        +
        Deprecated. 
        +
        Gets the integer ID for the specified item stack. + If the item stack is not linked to any ore, this will return -1 and no new entry will be created.
        +
        Parameters:
        stack - The item stack of the ore.
        +
        Returns:
        A number representing the ID for this ore type, or -1 if couldn't find it.
        +
      • +
      + + + +
        +
      • +

        getOreIDs

        +
        public static int[] getOreIDs(ItemStack stack)
        +
        Gets all the integer ID for the ores that the specified item stakc is registered to. + If the item stack is not linked to any ore, this will return an empty array and no new entry will be created.
        +
        Parameters:
        stack - The item stack of the ore.
        +
        Returns:
        An array of ids that this ore is registerd as.
        +
      • +
      + + + +
        +
      • +

        getOres

        +
        public static java.util.ArrayList<ItemStack> getOres(java.lang.String name)
        +
        Retrieves the ArrayList of items that are registered to this ore type. + Creates the list as empty if it did not exist. + + The returned List is unmodifiable, but will be updated if a new ore + is registered using registerOre
        +
        Parameters:
        name - The ore name, directly calls getOreID
        +
        Returns:
        An arrayList containing ItemStacks registered for this ore
        +
      • +
      + + + +
        +
      • +

        getOreNames

        +
        public static java.lang.String[] getOreNames()
        +
        Retrieves a list of all unique ore names that are already registered.
        +
        Returns:
        All unique ore names that are currently registered.
        +
      • +
      + + + +
        +
      • +

        getOres

        +
        @Deprecated
        +public static java.util.ArrayList<ItemStack> getOres(java.lang.Integer id)
        +
        Deprecated. 
        +
        Retrieves the ArrayList of items that are registered to this ore type. + Creates the list as empty if it did not exist. + + Warning: In 1.8, the return value will become a immutible list, + and this function WILL NOT create the entry if the ID doesn't exist, + IDs are intended to be internal OreDictionary things and modders + should not ever code them in.
        +
        Parameters:
        id - The ore ID, see getOreID
        +
        Returns:
        An List containing ItemStacks registered for this ore
        +
      • +
      + + + +
        +
      • +

        itemMatches

        +
        public static boolean itemMatches(ItemStack target,
        +                  ItemStack input,
        +                  boolean strict)
        +
      • +
      + + + +
        +
      • +

        registerOre

        +
        public static void registerOre(java.lang.String name,
        +               Item ore)
        +
      • +
      + + + +
        +
      • +

        registerOre

        +
        public static void registerOre(java.lang.String name,
        +               Block ore)
        +
      • +
      + + + +
        +
      • +

        registerOre

        +
        public static void registerOre(java.lang.String name,
        +               ItemStack ore)
        +
      • +
      + + + +
        +
      • +

        registerOre

        +
        @Deprecated
        +public static void registerOre(int id,
        +                          Item ore)
        +
        Deprecated. 
        +
      • +
      + + + +
        +
      • +

        registerOre

        +
        @Deprecated
        +public static void registerOre(int id,
        +                          Block ore)
        +
        Deprecated. 
        +
      • +
      + + + +
        +
      • +

        registerOre

        +
        @Deprecated
        +public static void registerOre(int id,
        +                          ItemStack ore)
        +
        Deprecated. 
        +
      • +
      + + + +
        +
      • +

        rebakeMap

        +
        public static void rebakeMap()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + -- cgit v1.2.3