[[email protected]] { Issue #35 } Use Reflection to add boxes to carpenter

This commit is contained in:
jaredlll08 committed 2015-02-03 23:26:42 +02:00
1 parent 4a5f4d62ba
commit 72590e79f5
4 files changed
+39 -7

No files matched your search

@@ -56,10 +56,20 @@ public class Carpenter {
public Add(Recipe recipe) {
super("Forestry Carpenter", MachineCarpenter.RecipeManager.recipes, recipe);
//The Carpenter has a list of valid Fluids, access them via Relfection because of private
// The Carpenter has a list of valid Fluids, access them via
// Relfection because of private
if (recipe.getLiquid() != null)
ForestryHelper.addCarpenterRecipeFluids(recipe.getLiquid().getFluid());
if(!RecipeManager.isBox(recipe.getBox())){
ForestryHelper.addCarpenterRecipeBox(recipe.getBox());
}
}
public void apply() {
Recipe r = (MachineCarpenter.Recipe)recipe;
}
}
@ZenMethod