Restructured registry packages (#2703)

Moved larger registries together with their related classes instead of putting unrelated classes into the same package.
This commit is contained in:
yueh
2016-12-14 22:35:52 +01:00
committed by GitHub
parent fb79fd284d
commit db85419702
13 changed files with 51 additions and 27 deletions
@@ -29,8 +29,8 @@ import appeng.api.AEApi;
import appeng.api.exceptions.MissingIngredientError;
import appeng.api.exceptions.RegistrationError;
import appeng.api.features.IInscriberRecipe;
import appeng.api.features.IInscriberRecipeBuilder;
import appeng.api.features.InscriberProcessType;
import appeng.core.features.registries.entries.InscriberRecipe;
/**
@@ -55,6 +55,7 @@ public final class Press extends InscriberProcess
return;
}
final IInscriberRecipeBuilder builder = AEApi.instance().registries().inscriber().builder();
final ItemStack[] realInput = this.getImprintable().getItemStackSet();
final List<ItemStack> inputs = new ArrayList<ItemStack>( realInput.length );
Collections.addAll( inputs, realInput );
@@ -63,7 +64,12 @@ public final class Press extends InscriberProcess
final ItemStack output = this.getOutput().getItemStack();
final InscriberProcessType type = InscriberProcessType.PRESS;
final IInscriberRecipe recipe = new InscriberRecipe( inputs, output, top, bot, type );
final IInscriberRecipe recipe = builder.withInputs( inputs )
.withOutput( output )
.withTopOptional( top )
.withBottomOptional( bot )
.withProcessType( type )
.build();
AEApi.instance().registries().inscriber().addRecipe( recipe );
}