use of minetweaker.api.recipes.BrewingRecipe in project CraftTweaker by CraftTweaker.
the class MCBrewingManager method getAll.
@Override
public List<IBrewingRecipe> getAll() {
List<IBrewingRecipe> ret = new ArrayList<>();
for (net.minecraftforge.common.brewing.IBrewingRecipe rec : BrewingRecipeRegistry.getRecipes()) {
if (rec instanceof net.minecraftforge.common.brewing.AbstractBrewingRecipe) {
AbstractBrewingRecipe abs = (AbstractBrewingRecipe) rec;
if (abs instanceof BrewingOreRecipe) {
BrewingOreRecipe brew = (BrewingOreRecipe) abs;
ret.add(new BrewingRecipe(new MCItemStack(brew.getOutput()), new MCItemStack(brew.getInput()), convert(brew.getIngredient())));
}
}
}
return ret;
}
use of minetweaker.api.recipes.BrewingRecipe in project CraftTweaker by CraftTweaker.
the class MCBrewingManager method getAll.
@Override
public List<IBrewingRecipe> getAll() {
List<IBrewingRecipe> ret = new ArrayList<>();
for (net.minecraftforge.common.brewing.IBrewingRecipe rec : BrewingRecipeRegistry.getRecipes()) {
if (rec instanceof net.minecraftforge.common.brewing.AbstractBrewingRecipe) {
AbstractBrewingRecipe abs = (AbstractBrewingRecipe) rec;
if (abs instanceof BrewingOreRecipe) {
BrewingOreRecipe brew = (BrewingOreRecipe) abs;
ret.add(new BrewingRecipe(new MCItemStack(brew.getOutput()), new MCItemStack(brew.getInput()), convert(brew.getIngredient())));
}
}
}
return ret;
}
Aggregations