2016-08-04 11:57:35 +02:00
|
|
|
/*
|
2016-10-31 19:05:29 +01:00
|
|
|
* This file ("RecipeKeepDataShaped.java") is part of the Actually Additions mod for Minecraft.
|
2016-08-04 11:57:35 +02:00
|
|
|
* It is created and owned by Ellpeck and distributed
|
|
|
|
* under the Actually Additions License to be found at
|
|
|
|
* http://ellpeck.de/actaddlicense
|
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
*
|
2017-01-01 16:23:26 +01:00
|
|
|
* © 2015-2017 Ellpeck
|
2016-08-04 11:57:35 +02:00
|
|
|
*/
|
|
|
|
|
2016-12-06 18:10:43 +01:00
|
|
|
package de.ellpeck.actuallyadditions.mod.crafting;
|
2016-08-04 11:57:35 +02:00
|
|
|
|
|
|
|
import net.minecraftforge.oredict.ShapedOreRecipe;
|
|
|
|
|
2021-02-27 21:24:26 +01:00
|
|
|
// TODO: [port] MOVE TO DATA_GENERATOR
|
|
|
|
@Deprecated
|
2019-05-02 09:10:29 +02:00
|
|
|
public class RecipeKeepDataShaped extends ShapedOreRecipe {
|
2021-02-27 21:24:26 +01:00
|
|
|
//
|
|
|
|
// private final ItemStack nbtCopyStack;
|
|
|
|
//
|
|
|
|
// public RecipeKeepDataShaped(ResourceLocation group, ItemStack result, ItemStack nbtCopyStack, Object... recipe) {
|
|
|
|
// super(group, result, recipe);
|
|
|
|
// this.nbtCopyStack = nbtCopyStack;
|
|
|
|
//
|
|
|
|
// RecipeHelper.addRecipe(group.getPath(), this);
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// @Override
|
|
|
|
// public ItemStack getCraftingResult(InventoryCrafting inventory) {
|
|
|
|
// ItemStack stack = super.getCraftingResult(inventory);
|
|
|
|
// if (StackUtil.isValid(stack)) {
|
|
|
|
// for (int i = 0; i < inventory.getSizeInventory(); i++) {
|
|
|
|
// ItemStack input = inventory.getStackInSlot(i);
|
|
|
|
// if (ItemUtil.areItemsEqual(this.nbtCopyStack, input, true)) {
|
|
|
|
// stack.setTagCompound(input.getTagCompound());
|
|
|
|
// break;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// return stack;
|
|
|
|
// }
|
2016-08-04 11:57:35 +02:00
|
|
|
|
|
|
|
}
|