reformatted all src files (#141)
This commit is contained in:
@@ -19,37 +19,32 @@
|
||||
package appeng.integration.modules.jei;
|
||||
|
||||
|
||||
import appeng.api.features.IInscriberRecipe;
|
||||
import mezz.jei.api.ingredients.IIngredients;
|
||||
import mezz.jei.api.recipe.IRecipeWrapper;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import mezz.jei.api.ingredients.IIngredients;
|
||||
import mezz.jei.api.recipe.IRecipeWrapper;
|
||||
class InscriberRecipeWrapper implements IRecipeWrapper {
|
||||
|
||||
import appeng.api.features.IInscriberRecipe;
|
||||
private final IInscriberRecipe recipe;
|
||||
|
||||
public InscriberRecipeWrapper(IInscriberRecipe recipe) {
|
||||
this.recipe = recipe;
|
||||
}
|
||||
|
||||
class InscriberRecipeWrapper implements IRecipeWrapper
|
||||
{
|
||||
@Override
|
||||
public void getIngredients(IIngredients ingredients) {
|
||||
List<List<ItemStack>> inputSlots = new ArrayList<>(3);
|
||||
inputSlots.add(Collections.singletonList(this.recipe.getTopOptional().orElse(ItemStack.EMPTY)));
|
||||
inputSlots.add(this.recipe.getInputs());
|
||||
inputSlots.add(Collections.singletonList(this.recipe.getBottomOptional().orElse(ItemStack.EMPTY)));
|
||||
ingredients.setInputLists(ItemStack.class, inputSlots);
|
||||
|
||||
private final IInscriberRecipe recipe;
|
||||
|
||||
public InscriberRecipeWrapper( IInscriberRecipe recipe )
|
||||
{
|
||||
this.recipe = recipe;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getIngredients( IIngredients ingredients )
|
||||
{
|
||||
List<List<ItemStack>> inputSlots = new ArrayList<>( 3 );
|
||||
inputSlots.add( Collections.singletonList( this.recipe.getTopOptional().orElse( ItemStack.EMPTY ) ) );
|
||||
inputSlots.add( this.recipe.getInputs() );
|
||||
inputSlots.add( Collections.singletonList( this.recipe.getBottomOptional().orElse( ItemStack.EMPTY ) ) );
|
||||
ingredients.setInputLists( ItemStack.class, inputSlots );
|
||||
|
||||
ingredients.setOutput( ItemStack.class, this.recipe.getOutput() );
|
||||
}
|
||||
ingredients.setOutput(ItemStack.class, this.recipe.getOutput());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user