本文整理汇总了Java中com.bioxx.tfc.Items.ItemOre类的典型用法代码示例。如果您正苦于以下问题:Java ItemOre类的具体用法?Java ItemOre怎么用?Java ItemOre使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ItemOre类属于com.bioxx.tfc.Items包,在下文中一共展示了ItemOre类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: isItemValidForSlot
import com.bioxx.tfc.Items.ItemOre; //导入依赖的package包/类
@Override
public boolean isItemValidForSlot(int slot, ItemStack item)
{
if(slot == slotsTop[0] && ovenItemStacks[slotsTop[0]] == null)
{
return !(item.getItem() instanceof ItemOre) && HeatRegistry.getInstance().findMatchingIndex(item) != null;
}
else if(slot == slotsTop[1] && ovenItemStacks[slotsTop[1]] == null)
{
return !(item.getItem() instanceof ItemOre) && HeatRegistry.getInstance().findMatchingIndex(item) != null;
}
else if(slot == slotsTop[2] && ovenItemStacks[slotsTop[2]] == null)
{
return !(item.getItem() instanceof ItemOre) && HeatRegistry.getInstance().findMatchingIndex(item) != null;
}
else if(slot == slotsSides[0] && ovenItemStacks[slotsSides[0]] == null)
{
return FuelManager.getInstance().isFuel(item);
}
return false;
}
示例2: newInstance
import com.bioxx.tfc.Items.ItemOre; //导入依赖的package包/类
@SuppressWarnings("unchecked")
@Override
public TemplateRecipeHandler newInstance()
{
if (alloyList == null)
{
alloyList = AlloyManager.INSTANCE.alloys;
Metal metal;
ItemStack itemStack = new ItemStack(TFCItems.oreChunk);
while ((metal = ((ItemOre) TFCItems.oreChunk).getMetalType(itemStack)) != null)
{
metalItemMap.put(metal, itemStack.copy());
itemStack.setItemDamage(itemStack.getItemDamage() + 1);
}
}
return super.newInstance();
}
示例3: loadUsageRecipes
import com.bioxx.tfc.Items.ItemOre; //导入依赖的package包/类
@Override
public void loadUsageRecipes(ItemStack ingredient)
{
for (Alloy recipe : alloyList)
{
for (AlloyMetal alloyMetal : recipe.alloyIngred)
{
if (alloyMetal.metalType.meltedItem == ingredient.getItem() || alloyMetal.metalType.ingot == ingredient.getItem()) arecipes.add(new CachedAlloyRecipe(recipe));
else if (ingredient.getItem() instanceof ItemOre && ((ItemOre) ingredient.getItem()).getMetalType(ingredient) == alloyMetal.metalType) arecipes.add(new CachedAlloyRecipe(recipe));
}
}
}
示例4: isValidForForge
import com.bioxx.tfc.Items.ItemOre; //导入依赖的package包/类
private boolean isValidForForge(HeatIndex recipe)
{
return !(recipe.input.getItem() instanceof ItemOre) && !(recipe.input.getItem() instanceof ItemFoodTFC);
}