Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4356c10
commit edf8f17
Showing
5 changed files
with
92 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
common/buildcraft/api/recipes/IIntegrationRecipeManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright (c) SpaceToad, 2011-2012 | ||
* http://www.mod-buildcraft.com | ||
* | ||
* BuildCraft is distributed under the terms of the Minecraft Mod Public | ||
* License 1.0, or MMPL. Please check the contents of the license located in | ||
* http://www.mod-buildcraft.com/MMPL-1.0.txt | ||
*/ | ||
package buildcraft.api.recipes; | ||
|
||
import java.util.List; | ||
import net.minecraft.item.ItemStack; | ||
|
||
/** | ||
* The Integration Table's primary purpose is to modify an input item's NBT | ||
* data. As such its not a "traditional" type of recipe. Rather than predefined | ||
* inputs and outputs, it takes an input and transforms it. | ||
* | ||
* @author CovertJaguar <http://www.railcraft.info/> | ||
*/ | ||
public interface IIntegrationRecipeManager { | ||
|
||
public static interface IIntegrationRecipe { | ||
|
||
double getEnergyCost(); | ||
|
||
boolean isValidInput(ItemStack stack); | ||
|
||
ItemStack getOutputForInput(ItemStack stack); | ||
|
||
ItemStack[] getExampleInputs(); | ||
} | ||
|
||
/** | ||
* Add an Integration Table recipe. | ||
* | ||
*/ | ||
void addRecipe(IIntegrationRecipe recipe); | ||
|
||
List<? extends IIntegrationRecipe> getRecipes(); | ||
} |
22 changes: 22 additions & 0 deletions
22
common/buildcraft/core/recipes/IntegrationRecipeManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package buildcraft.core.recipes; | ||
|
||
import buildcraft.api.recipes.IIntegrationRecipeManager; | ||
import buildcraft.api.recipes.IIntegrationRecipeManager.IIntegrationRecipe; | ||
import java.util.LinkedList; | ||
import java.util.List; | ||
|
||
public class IntegrationRecipeManager implements IIntegrationRecipeManager { | ||
|
||
public static final IntegrationRecipeManager INSTANCE = new IntegrationRecipeManager(); | ||
private List<IIntegrationRecipe> integrationRecipes = new LinkedList<IIntegrationRecipe>(); | ||
|
||
@Override | ||
public void addRecipe(IIntegrationRecipe recipe) { | ||
integrationRecipes.add(recipe); | ||
} | ||
|
||
@Override | ||
public List<IIntegrationRecipe> getRecipes() { | ||
return integrationRecipes; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright (c) SpaceToad, 2011-2012 | ||
* http://www.mod-buildcraft.com | ||
* | ||
* BuildCraft is distributed under the terms of the Minecraft Mod Public | ||
* License 1.0, or MMPL. Please check the contents of the license located in | ||
* http://www.mod-buildcraft.com/MMPL-1.0.txt | ||
*/ | ||
package buildcraft.silicon; | ||
|
||
/** | ||
* | ||
* @author CovertJaguar <http://www.railcraft.info/> | ||
*/ | ||
public class TileIntegrationTable extends TileLaserTableBase { | ||
|
||
@Override | ||
public double getRequiredEnergy() { | ||
throw new UnsupportedOperationException("Not supported yet."); | ||
} | ||
|
||
@Override | ||
public boolean canCraft() { | ||
throw new UnsupportedOperationException("Not supported yet."); | ||
} | ||
} |