|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraftforge.oredict.OreDictionary
public class OreDictionary
Nested Class Summary | |
---|---|
static class |
OreDictionary.OreRegisterEvent
|
Constructor Summary | |
---|---|
OreDictionary()
|
Method Summary | |
---|---|
static int |
getOreID(ItemStack itemStack)
Gets the integer ID for the specified item stack. |
static int |
getOreID(String name)
Gets the integer ID for the specified ore name. |
static String |
getOreName(int id)
Reverse of getOreID, will not create new entries. |
static String[] |
getOreNames()
Retrieves a list of all unique ore names that are already registered. |
static ArrayList<ItemStack> |
getOres(Integer id)
Retrieves the ArrayList of items that are registered to this ore type. |
static ArrayList<ItemStack> |
getOres(String name)
Retrieves the ArrayList of items that are registered to this ore type. |
static void |
initVanillaEntries()
|
static boolean |
itemMatches(ItemStack target,
ItemStack input,
boolean strict)
|
static void |
registerOre(int id,
Block ore)
|
static void |
registerOre(int id,
Item ore)
|
static void |
registerOre(int id,
ItemStack ore)
|
static void |
registerOre(String name,
Block ore)
|
static void |
registerOre(String name,
Item ore)
|
static void |
registerOre(String name,
ItemStack ore)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OreDictionary()
Method Detail |
---|
public static void initVanillaEntries()
public static int getOreID(String name)
name
- The unique name for this ore 'oreIron', 'ingotIron', etc..
public static String getOreName(int id)
id
- The ID to translate to a string
public static int getOreID(ItemStack itemStack)
itemStack
- The item stack of the ore.
public static ArrayList<ItemStack> getOres(String name)
name
- The ore name, directly calls getOreID
public static String[] getOreNames()
public static ArrayList<ItemStack> getOres(Integer id)
id
- The ore ID, see getOreID
public static boolean itemMatches(ItemStack target, ItemStack input, boolean strict)
public static void registerOre(String name, Item ore)
public static void registerOre(String name, Block ore)
public static void registerOre(String name, ItemStack ore)
public static void registerOre(int id, Item ore)
public static void registerOre(int id, Block ore)
public static void registerOre(int id, ItemStack ore)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |