Lucernia door & trapdoor, campfire recipes
This commit is contained in:
parent
dabd62d5b8
commit
bfbb4a0cff
8 changed files with 27 additions and 12 deletions
|
@ -3,6 +3,7 @@ package ru.betterend.recipe.builders;
|
|||
import net.minecraft.item.ItemConvertible;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.recipe.BlastingRecipe;
|
||||
import net.minecraft.recipe.CampfireCookingRecipe;
|
||||
import net.minecraft.recipe.Ingredient;
|
||||
import net.minecraft.recipe.RecipeType;
|
||||
import net.minecraft.recipe.SmeltingRecipe;
|
||||
|
@ -59,10 +60,18 @@ public class FurnaceRecipe {
|
|||
}
|
||||
|
||||
public void build() {
|
||||
build(false);
|
||||
build(false, false);
|
||||
}
|
||||
|
||||
public void build(boolean blasting) {
|
||||
public void buildWithBlasting() {
|
||||
build(true, false);
|
||||
}
|
||||
|
||||
public void buildWithCampfire() {
|
||||
build(false, true);
|
||||
}
|
||||
|
||||
public void build(boolean blasting, boolean campfire) {
|
||||
if (exist) {
|
||||
Identifier id = BetterEnd.makeID(name);
|
||||
SmeltingRecipe recipe = new SmeltingRecipe(id, group, Ingredient.ofItems(input), new ItemStack(output, count), xp, time);
|
||||
|
@ -72,6 +81,11 @@ public class FurnaceRecipe {
|
|||
BlastingRecipe recipe2 = new BlastingRecipe(id, group, Ingredient.ofItems(input), new ItemStack(output, count), xp, time / 2);
|
||||
EndRecipeManager.addRecipe(RecipeType.BLASTING, recipe2);
|
||||
}
|
||||
|
||||
if (campfire) {
|
||||
CampfireCookingRecipe recipe2 = new CampfireCookingRecipe(id, group, Ingredient.ofItems(input), new ItemStack(output, count), xp, time / 2);
|
||||
EndRecipeManager.addRecipe(RecipeType.CAMPFIRE_COOKING, recipe2);
|
||||
}
|
||||
}
|
||||
else {
|
||||
BetterEnd.LOGGER.debug("Smelting recipe {} couldn't be added", name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue