本文整理汇总了Java中net.minecraftforge.oredict.OreDictionary.getOreNames方法的典型用法代码示例。如果您正苦于以下问题:Java OreDictionary.getOreNames方法的具体用法?Java OreDictionary.getOreNames怎么用?Java OreDictionary.getOreNames使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraftforge.oredict.OreDictionary
的用法示例。
在下文中一共展示了OreDictionary.getOreNames方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ContainerSmelter
import net.minecraftforge.oredict.OreDictionary; //导入方法依赖的package包/类
public ContainerSmelter(InventoryPlayer playerInventory, TileEntitySmelter smelter) {
for(String ore : OreDictionary.getOreNames())
if(ore.toLowerCase().contains("ore"))
ores.addAll(OreDictionary.getOres(ore));
this.addSlotToContainer(new SlotSmelterInput(ores, smelter.getInventory(), 0, 56, 17));
this.addSlotToContainer(new SlotPanOutput(playerInventory.player, smelter.getInventory(), 1, 116, 35));
this.addSlotToContainer(new SlotPanOutput(playerInventory.player, smelter.getInventory(), 2, 140, 39));
for (int i = 0; i < 3; ++i)
for (int j = 0; j < 9; ++j)
this.addSlotToContainer(new Slot(playerInventory, j + i * 9 + 9, 8 + j * 18, 84 + i * 18));
for (int k = 0; k < 9; ++k)
this.addSlotToContainer(new Slot(playerInventory, k, 8 + k * 18, 142));
}