final variables and parameters
This commit is contained in:
@@ -39,11 +39,11 @@ public class Grind implements ICraftHandler, IWebsiteSerializer
|
||||
IIngredient[] pro_output;
|
||||
|
||||
@Override
|
||||
public void setup( List<List<IIngredient>> input, List<List<IIngredient>> output ) throws RecipeError
|
||||
public void setup( final List<List<IIngredient>> input, final List<List<IIngredient>> output ) throws RecipeError
|
||||
{
|
||||
if( input.size() == 1 && output.size() == 1 )
|
||||
{
|
||||
int outs = output.get( 0 ).size();
|
||||
final int outs = output.get( 0 ).size();
|
||||
if( input.get( 0 ).size() == 1 && outs == 1 )
|
||||
{
|
||||
this.pro_input = input.get( 0 ).get( 0 );
|
||||
@@ -57,14 +57,14 @@ public class Grind implements ICraftHandler, IWebsiteSerializer
|
||||
@Override
|
||||
public void register() throws RegistrationError, MissingIngredientError
|
||||
{
|
||||
for( ItemStack is : this.pro_input.getItemStackSet() )
|
||||
for( final ItemStack is : this.pro_input.getItemStackSet() )
|
||||
{
|
||||
AEApi.instance().registries().grinder().addRecipe( is, this.pro_output[0].getItemStack(), 8 );
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPattern( RecipeHandler h )
|
||||
public String getPattern( final RecipeHandler h )
|
||||
{
|
||||
return "grind\n" +
|
||||
h.getName( this.pro_input ) + '\n' +
|
||||
@@ -72,7 +72,7 @@ public class Grind implements ICraftHandler, IWebsiteSerializer
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canCraft( ItemStack output ) throws RegistrationError, MissingIngredientError
|
||||
public boolean canCraft( final ItemStack output ) throws RegistrationError, MissingIngredientError
|
||||
{
|
||||
return Platform.isSameItemPrecise( this.pro_output[0].getItemStack(), output );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user