本文整理汇总了Java中com.bioxx.tfc.api.Crafting.BarrelManager类的典型用法代码示例。如果您正苦于以下问题:Java BarrelManager类的具体用法?Java BarrelManager怎么用?Java BarrelManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BarrelManager类属于com.bioxx.tfc.api.Crafting包,在下文中一共展示了BarrelManager类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: undo
import com.bioxx.tfc.api.Crafting.BarrelManager; //导入依赖的package包/类
@Override
public void undo()
{
List<BarrelRecipe> BarrelList = BarrelManager.getInstance().getRecipes();
for (int i = 0; i < BarrelList.size(); i++)
{
if (BarrelList.get(i) != null)
{
ItemStack recipeIS = BarrelList.get(i).getInItem();
FluidStack recipeFS = BarrelList.get(i).getInFluid();
if (recipeIS != null && inputStack != null && recipeIS.isItemEqual(inputStack) &&
recipeFS != null && inputFluid != null && recipeFS.isFluidStackIdentical(inputFluid))
{
BarrelList.remove(i--);
}
}
}
}
示例2: apply
import com.bioxx.tfc.api.Crafting.BarrelManager; //导入依赖的package包/类
@Override
public void apply()
{
List<BarrelRecipe> BarrelList = BarrelManager.getInstance().getRecipes();
for (int i = 0; i < BarrelList.size(); i++)
{
if (BarrelList.get(i) != null)
{
ItemStack recipeIS = BarrelList.get(i).getInItem();
FluidStack recipeFS = BarrelList.get(i).getInFluid();
if (recipeIS != null && inputStack != null && recipeIS.isItemEqual(inputStack) &&
recipeFS != null && inputFluid != null && recipeFS.isFluidStackIdentical(inputFluid))
{
BarrelList.remove(i--);
}
}
}
}
示例3: registerBarrelRecipes
import com.bioxx.tfc.api.Crafting.BarrelManager; //导入依赖的package包/类
private static void registerBarrelRecipes()
{
BarrelManager.getInstance().addRecipe(new BarrelRecipe(new ItemStack(ModItems.powderAsh, 1, 0), new FluidStack(TFCFluids.FRESHWATER, 500), null, new FluidStack(FluidList.BasePotashLiquor, 500), 8).setMinTechLevel(0).setSealedRecipe(true).setRemovesLiquid(false).setAllowAnyStack(false));
BarrelManager.getInstance().addRecipe(new BarrelRecipe(new ItemStack(TFCItems.reeds, 1, 0), new FluidStack(FluidList.BasePotashLiquor, 156), new ItemStack(ModItems.itemCelluloseFibers, 1, 0), new FluidStack(FluidList.Waste, 156), 24).setMinTechLevel(0).setSealedRecipe(true).setRemovesLiquid(false).setAllowAnyStack(false));
BarrelManager.getInstance().addRecipe(new BarrelMultiItemRecipe(new ItemStack(TFCItems.hide, 1, 0), new FluidStack(FluidList.BasePotashLiquor, 300), new ItemStack(TFCItems.soakedHide, 1, 0), new FluidStack(FluidList.Waste, 300)).setMinTechLevel(0));
BarrelManager.getInstance().addRecipe(new BarrelMultiItemRecipe(new ItemStack(TFCItems.hide, 1, 1), new FluidStack(FluidList.BasePotashLiquor, 600), new ItemStack(TFCItems.soakedHide, 1, 1), new FluidStack(FluidList.Waste, 600)).setMinTechLevel(0));
BarrelManager.getInstance().addRecipe(new BarrelMultiItemRecipe(new ItemStack(TFCItems.hide, 1, 2), new FluidStack(FluidList.BasePotashLiquor, 900), new ItemStack(TFCItems.soakedHide, 1, 2), new FluidStack(FluidList.Waste, 900)).setMinTechLevel(0));
}
示例4: registerBarrelRecipes
import com.bioxx.tfc.api.Crafting.BarrelManager; //导入依赖的package包/类
private static void registerBarrelRecipes()
{
BarrelManager.getInstance().addRecipe(new BarrelRecipe(new ItemStack(ItemList.Powder, 1, 0), new FluidStack(TFCFluids.FRESHWATER, 500), null, new FluidStack(FluidList.Plaster, 500), 0).setMinTechLevel(0).setSealedRecipe(false).setRemovesLiquid(false).setAllowAnyStack(false));
BarrelManager.getInstance().addRecipe(new BarrelRecipe(new ItemStack(TFCBlocks.sand, 1, 32767), new FluidStack(FluidList.Plaster, 100), new ItemStack(TFCItems.mortar, 16), new FluidStack(FluidList.Plaster, 100)).setMinTechLevel(0));
BarrelManager.getInstance().addRecipe(new BarrelRecipe(new ItemStack(TFCBlocks.sand2, 1, 32767), new FluidStack(FluidList.Plaster, 100), new ItemStack(TFCItems.mortar, 16), new FluidStack(FluidList.Plaster, 100)).setMinTechLevel(0));
BarrelManager.getInstance().addRecipe(new BarrelPlasterRecipe(new ItemStack(ItemList.Powder, 1, 0), new FluidStack(FluidList.Plaster, 50), new ItemStack(BlockList.Alabaster, 1), new FluidStack(FluidList.Plaster, 50)).setMinTechLevel(0));
for(int i = 0; i < FluidList.LiquidDyes.length; i++)
{
DyeFluid dye = FluidList.LiquidDyes[i];
BarrelManager.getInstance().addRecipe(new BarrelRecipe(new ItemStack(TFCItems.dye, 1, dye.TFCDyeIndex), new FluidStack(TFCFluids.FRESHWATER, 400), null, new FluidStack(dye, 400), 0).setMinTechLevel(0).setSealedRecipe(false).setRemovesLiquid(false).setAllowAnyStack(false));
}
}
示例5: registerWoodenTieBarrelRecipes
import com.bioxx.tfc.api.Crafting.BarrelManager; //导入依赖的package包/类
private void registerWoodenTieBarrelRecipes() {
Item tie = GameRegistry.findItem("Railcraft", "part.tie");
ItemStack woodenTie = new ItemStack(tie, 1);
FluidStack creosote = new FluidStack(Fluids.CREOSOTE.get(), 1000);
for (int i = 0; i < Global.WOOD_ALL.length; i++) {
BarrelManager.getInstance().addRecipe(
new BarrelRecipe(new ItemStack(TFCItems.singlePlank, 1, i),
creosote,
woodenTie, creosote)
.setMinTechLevel(0));
}
}
示例6: registerPaintRecipe
import com.bioxx.tfc.api.Crafting.BarrelManager; //导入依赖的package包/类
private static void registerPaintRecipe(String resultDye, ItemStack input) {
ItemStack out = new ItemStack(ModItems.limePaint, 8, ModUtils.getColorIndex(resultDye));
BarrelManager.getInstance().addRecipe(
new BarrelRecipe(input, new FluidStack(TFCFluids.LIMEWATER, 100), out, new FluidStack(TFCFluids.LIMEWATER, 100)).setMinTechLevel(0));
}