コード例 #1
0
 @Override
 public String getTranslatedName(int level) {
   String enchantedName = StatCollector.translateToLocal("enchantment.level." + level);
   if (StatCollector.canTranslate("minechem.enchantment.coated")) {
     return MinechemUtil.getLocalString(chemical.getUnlocalizedName())
         + " "
         + StatCollector.translateToLocalFormatted("minechem.enchantment.coated", enchantedName);
   } else {
     return MinechemUtil.getLocalString(chemical.getUnlocalizedName())
         + " "
         + enchantedName
         + " Coated";
   }
 }
コード例 #2
0
 public ArrayList<ItemStack> getRecipeOutputForFluidInput(FluidStack input) {
   DecomposerFluidRecipe fluidRecipe = (DecomposerFluidRecipe) DecomposerRecipe.get(input);
   if (fluidRecipe != null) {
     return MinechemUtil.convertChemicalsIntoItemStacks(fluidRecipe.getOutput());
   }
   return null;
 }
コード例 #3
0
 public ArrayList<ItemStack> getRecipeOutputForInput(ItemStack input) {
   DecomposerRecipe recipe = getRecipe(input);
   if (recipe != null) {
     return MinechemUtil.convertChemicalsIntoItemStacks(recipe.getOutput());
   }
   return null;
 }