@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;
 }