--
This commit is contained in:
parent
4e15e4df96
commit
6998a91e55
6 changed files with 17 additions and 13 deletions
|
|
@ -111,7 +111,8 @@ public class ElectroextractorRecipeHandler extends TemplateRecipeHandler
|
||||||
@Override
|
@Override
|
||||||
public void loadCraftingRecipes(ItemStack result)
|
public void loadCraftingRecipes(ItemStack result)
|
||||||
{
|
{
|
||||||
Map<ItemStack, ItemStack> recipes = (Map<ItemStack, ItemStack>) ElectroextractorRecipes.getInstance().getRecipeList();
|
Map<ItemStack, ItemStack> recipes = (Map<ItemStack, ItemStack>) ElectroextractorRecipes.getInstance()
|
||||||
|
.getRecipeList();
|
||||||
for (Entry<ItemStack, ItemStack> recipe : recipes.entrySet())
|
for (Entry<ItemStack, ItemStack> recipe : recipes.entrySet())
|
||||||
if (NEIServerUtils.areStacksSameType(recipe.getValue(), result))
|
if (NEIServerUtils.areStacksSameType(recipe.getValue(), result))
|
||||||
arecipes.add(new ElectroextractorPair(recipe.getKey(), recipe.getValue()));
|
arecipes.add(new ElectroextractorPair(recipe.getKey(), recipe.getValue()));
|
||||||
|
|
@ -129,7 +130,8 @@ public class ElectroextractorRecipeHandler extends TemplateRecipeHandler
|
||||||
@Override
|
@Override
|
||||||
public void loadUsageRecipes(ItemStack ingredient)
|
public void loadUsageRecipes(ItemStack ingredient)
|
||||||
{
|
{
|
||||||
Map<ItemStack, ItemStack> recipes = (Map<ItemStack, ItemStack>) ElectroextractorRecipes.getInstance().getRecipeList();
|
Map<ItemStack, ItemStack> recipes = (Map<ItemStack, ItemStack>) ElectroextractorRecipes.getInstance()
|
||||||
|
.getRecipeList();
|
||||||
for (Entry<ItemStack, ItemStack> recipe : recipes.entrySet())
|
for (Entry<ItemStack, ItemStack> recipe : recipes.entrySet())
|
||||||
{
|
{
|
||||||
if (NEIServerUtils.areStacksSameTypeCrafting(recipe.getKey(), ingredient))
|
if (NEIServerUtils.areStacksSameTypeCrafting(recipe.getKey(), ingredient))
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,8 @@ public class WoodchipperRecipeHandler extends TemplateRecipeHandler
|
||||||
@Override
|
@Override
|
||||||
public void loadCraftingRecipes(ItemStack result)
|
public void loadCraftingRecipes(ItemStack result)
|
||||||
{
|
{
|
||||||
Map<ItemStack, ItemStack> recipes = (Map<ItemStack, ItemStack>) WoodchipperRecipes.getInstance().getRecipeList();
|
Map<ItemStack, ItemStack> recipes = (Map<ItemStack, ItemStack>) WoodchipperRecipes.getInstance()
|
||||||
|
.getRecipeList();
|
||||||
for (Entry<ItemStack, ItemStack> recipe : recipes.entrySet())
|
for (Entry<ItemStack, ItemStack> recipe : recipes.entrySet())
|
||||||
if (NEIServerUtils.areStacksSameType(recipe.getValue(), result))
|
if (NEIServerUtils.areStacksSameType(recipe.getValue(), result))
|
||||||
arecipes.add(new WoodchipperPair(recipe.getKey(), recipe.getValue()));
|
arecipes.add(new WoodchipperPair(recipe.getKey(), recipe.getValue()));
|
||||||
|
|
@ -129,7 +130,8 @@ public class WoodchipperRecipeHandler extends TemplateRecipeHandler
|
||||||
@Override
|
@Override
|
||||||
public void loadUsageRecipes(ItemStack ingredient)
|
public void loadUsageRecipes(ItemStack ingredient)
|
||||||
{
|
{
|
||||||
Map<ItemStack, ItemStack> recipes = (Map<ItemStack, ItemStack>) WoodchipperRecipes.getInstance().getRecipeList();
|
Map<ItemStack, ItemStack> recipes = (Map<ItemStack, ItemStack>) WoodchipperRecipes.getInstance()
|
||||||
|
.getRecipeList();
|
||||||
for (Entry<ItemStack, ItemStack> recipe : recipes.entrySet())
|
for (Entry<ItemStack, ItemStack> recipe : recipes.entrySet())
|
||||||
{
|
{
|
||||||
if (NEIServerUtils.areStacksSameTypeCrafting(recipe.getKey(), ingredient))
|
if (NEIServerUtils.areStacksSameTypeCrafting(recipe.getKey(), ingredient))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue