@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";
   }
 }
Exemplo n.º 2
0
 public ArrayList<ItemStack> getRecipeOutputForFluidInput(FluidStack input) {
   DecomposerFluidRecipe fluidRecipe = (DecomposerFluidRecipe) DecomposerRecipe.get(input);
   if (fluidRecipe != null) {
     return MinechemUtil.convertChemicalsIntoItemStacks(fluidRecipe.getOutput());
   }
   return null;
 }
Exemplo n.º 3
0
 public ArrayList<ItemStack> getRecipeOutputForInput(ItemStack input) {
   DecomposerRecipe recipe = getRecipe(input);
   if (recipe != null) {
     return MinechemUtil.convertChemicalsIntoItemStacks(recipe.getOutput());
   }
   return null;
 }