Finally use Java7 <>
This commit is contained in:
@@ -60,8 +60,8 @@ public final class DisassembleRecipe extends net.minecraftforge.registries.IForg
|
||||
final IItems items = definitions.items();
|
||||
final IMaterials mats = definitions.materials();
|
||||
|
||||
this.cellMappings = new HashMap<IItemDefinition, IItemDefinition>( 4 );
|
||||
this.nonCellMappings = new HashMap<IItemDefinition, IItemDefinition>( 5 );
|
||||
this.cellMappings = new HashMap<>( 4 );
|
||||
this.nonCellMappings = new HashMap<>( 5 );
|
||||
|
||||
this.cellMappings.put( items.cell1k(), mats.cell1kPart() );
|
||||
this.cellMappings.put( items.cell4k(), mats.cell4kPart() );
|
||||
|
||||
@@ -105,7 +105,7 @@ public class ShapedRecipe extends net.minecraftforge.registries.IForgeRegistryEn
|
||||
throw new IllegalStateException( ret.toString() );
|
||||
}
|
||||
|
||||
final Map<Character, IIngredient> itemMap = new HashMap<Character, IIngredient>();
|
||||
final Map<Character, IIngredient> itemMap = new HashMap<>();
|
||||
|
||||
for( ; idx < recipe.length; idx += 2 )
|
||||
{
|
||||
|
||||
@@ -37,7 +37,7 @@ import appeng.api.recipes.IIngredient;
|
||||
public class ShapelessRecipe extends net.minecraftforge.registries.IForgeRegistryEntry.Impl<IRecipe> implements IRecipe, IRecipeBakeable
|
||||
{
|
||||
|
||||
private final ArrayList<Object> input = new ArrayList<Object>();
|
||||
private final ArrayList<Object> input = new ArrayList<>();
|
||||
private ItemStack output = ItemStack.EMPTY;
|
||||
private boolean disable = false;
|
||||
|
||||
@@ -77,7 +77,7 @@ public class ShapelessRecipe extends net.minecraftforge.registries.IForgeRegistr
|
||||
return false;
|
||||
}
|
||||
|
||||
final ArrayList<Object> required = new ArrayList<Object>( this.input );
|
||||
final ArrayList<Object> required = new ArrayList<>( this.input );
|
||||
|
||||
for( int x = 0; x < var1.getSizeInventory(); x++ )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user