Java Code Examples for net.minecraftforge.oredict.OreDictionary#OreRegisterEvent
The following examples show how to use
net.minecraftforge.oredict.OreDictionary#OreRegisterEvent .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ForgeEventHandler.java From NOVA-Core with GNU Lesser General Public License v3.0 | 5 votes |
@SubscribeEvent public void onOreRegister(OreDictionary.OreRegisterEvent event) { ItemDictionary novaItemDictionary = Game.itemDictionary(); Item item = ItemConverter.instance().getNovaItem(event.getOre()); if (!novaItemDictionary.get(event.getName()).contains(item)) { novaItemDictionary.add(event.getName(), item); } }
Example 2
Source File: OreDictionaryIntegration.java From NOVA-Core with GNU Lesser General Public License v3.0 | 5 votes |
@SubscribeEvent public void onForgeAdded(OreDictionary.OreRegisterEvent event) { Item novaItem = ItemConverter.instance().getNovaItem(event.getOre()); ItemDictionary novaItemDictionary = Game.itemDictionary(); if (!novaItemDictionary.get(event.getName()).contains(novaItem)) { novaItemDictionary.add(event.getName(), novaItem); } }
Example 3
Source File: ForgeEventHandler.java From NOVA-Core with GNU Lesser General Public License v3.0 | 5 votes |
@SubscribeEvent public void onOreRegister(OreDictionary.OreRegisterEvent event) { ItemDictionary novaItemDictionary = Game.itemDictionary(); Item item = ItemConverter.instance().getNovaItem(event.Ore); if (!novaItemDictionary.get(event.Name).contains(item)) { novaItemDictionary.add(event.Name, item); } }
Example 4
Source File: OreDictionaryIntegration.java From NOVA-Core with GNU Lesser General Public License v3.0 | 5 votes |
@SubscribeEvent public void onForgeAdded(OreDictionary.OreRegisterEvent event) { Item novaItem = ItemConverter.instance().getNovaItem(event.Ore); ItemDictionary novaItemDictionary = Game.itemDictionary(); if (!novaItemDictionary.get(event.Name).contains(novaItem)) { novaItemDictionary.add(event.Name, novaItem); } }
Example 5
Source File: ForgeEventHandler.java From NOVA-Core with GNU Lesser General Public License v3.0 | 5 votes |
@SubscribeEvent public void onOreRegister(OreDictionary.OreRegisterEvent event) { ItemDictionary novaItemDictionary = Game.itemDictionary(); Item item = ItemConverter.instance().getNovaItem(event.Ore); if (!novaItemDictionary.get(event.Name).contains(item)) { novaItemDictionary.add(event.Name, item); } }
Example 6
Source File: OreDictionaryIntegration.java From NOVA-Core with GNU Lesser General Public License v3.0 | 5 votes |
@SubscribeEvent public void onForgeAdded(OreDictionary.OreRegisterEvent event) { Item novaItem = ItemConverter.instance().getNovaItem(event.Ore); ItemDictionary novaItemDictionary = Game.itemDictionary(); if (!novaItemDictionary.get(event.Name).contains(novaItem)) { novaItemDictionary.add(event.Name, novaItem); } }
Example 7
Source File: ArtifactServerEventHandler.java From Artifacts with MIT License | 4 votes |
@SubscribeEvent public void oreRegisterEvent(OreDictionary.OreRegisterEvent event) { if(event.Name.indexOf("ore") >= 0 || event.Name.indexOf("gem") >= 0) { ComponentOreRadar.addOre(event.Ore); } }