All parameters on one line (for now)
Easier picking of 1.7 changes
This commit is contained in:
@@ -34,8 +34,7 @@ public class ItemSorters
|
||||
|
||||
private static SortDir Direction = SortDir.ASCENDING;
|
||||
|
||||
public static final Comparator<IAEItemStack> CONFIG_BASED_SORT_BY_NAME = new Comparator<IAEItemStack>()
|
||||
{
|
||||
public static final Comparator<IAEItemStack> CONFIG_BASED_SORT_BY_NAME = new Comparator<IAEItemStack>(){
|
||||
|
||||
@Override
|
||||
public int compare( final IAEItemStack o1, final IAEItemStack o2 )
|
||||
@@ -47,8 +46,7 @@ public class ItemSorters
|
||||
return Platform.getItemDisplayName( o2 ).compareToIgnoreCase( Platform.getItemDisplayName( o1 ) );
|
||||
}
|
||||
};
|
||||
public static final Comparator<IAEItemStack> CONFIG_BASED_SORT_BY_MOD = new Comparator<IAEItemStack>()
|
||||
{
|
||||
public static final Comparator<IAEItemStack> CONFIG_BASED_SORT_BY_MOD = new Comparator<IAEItemStack>(){
|
||||
|
||||
@Override
|
||||
public int compare( final IAEItemStack o1, final IAEItemStack o2 )
|
||||
@@ -73,8 +71,7 @@ public class ItemSorters
|
||||
return compareToIgnoreCase;
|
||||
}
|
||||
};
|
||||
public static final Comparator<IAEItemStack> CONFIG_BASED_SORT_BY_SIZE = new Comparator<IAEItemStack>()
|
||||
{
|
||||
public static final Comparator<IAEItemStack> CONFIG_BASED_SORT_BY_SIZE = new Comparator<IAEItemStack>(){
|
||||
|
||||
@Override
|
||||
public int compare( final IAEItemStack o1, final IAEItemStack o2 )
|
||||
@@ -87,8 +84,7 @@ public class ItemSorters
|
||||
}
|
||||
};
|
||||
private static IInvTweaks api;
|
||||
public static final Comparator<IAEItemStack> CONFIG_BASED_SORT_BY_INV_TWEAKS = new Comparator<IAEItemStack>()
|
||||
{
|
||||
public static final Comparator<IAEItemStack> CONFIG_BASED_SORT_BY_INV_TWEAKS = new Comparator<IAEItemStack>(){
|
||||
|
||||
@Override
|
||||
public int compare( final IAEItemStack o1, final IAEItemStack o2 )
|
||||
|
||||
@@ -106,16 +106,14 @@ public class AdaptorPlayerInventory implements IInventory
|
||||
}
|
||||
|
||||
@Override
|
||||
public void openInventory(
|
||||
final EntityPlayer player )
|
||||
public void openInventory( final EntityPlayer player )
|
||||
{
|
||||
this.src.openInventory( player );
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void closeInventory(
|
||||
final EntityPlayer player )
|
||||
public void closeInventory( final EntityPlayer player )
|
||||
{
|
||||
this.src.closeInventory( player );
|
||||
}
|
||||
@@ -133,16 +131,13 @@ public class AdaptorPlayerInventory implements IInventory
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getField(
|
||||
final int id )
|
||||
public int getField( final int id )
|
||||
{
|
||||
return this.src.getField( id );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setField(
|
||||
final int id,
|
||||
final int value )
|
||||
public void setField( final int id, final int value )
|
||||
{
|
||||
this.src.setField( id, value );
|
||||
}
|
||||
|
||||
@@ -208,14 +208,12 @@ public class WrapperChainedInventory implements IInventory
|
||||
}
|
||||
|
||||
@Override
|
||||
public void openInventory(
|
||||
final EntityPlayer player )
|
||||
public void openInventory( final EntityPlayer player )
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void closeInventory(
|
||||
final EntityPlayer player )
|
||||
public void closeInventory( final EntityPlayer player )
|
||||
{
|
||||
}
|
||||
|
||||
@@ -245,16 +243,13 @@ public class WrapperChainedInventory implements IInventory
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getField(
|
||||
final int id )
|
||||
public int getField( final int id )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setField(
|
||||
final int id,
|
||||
final int value )
|
||||
public void setField( final int id, final int value )
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -118,15 +118,13 @@ public class WrapperInvSlot
|
||||
}
|
||||
|
||||
@Override
|
||||
public void openInventory(
|
||||
final EntityPlayer player )
|
||||
public void openInventory( final EntityPlayer player )
|
||||
{
|
||||
this.inv.openInventory( player );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void closeInventory(
|
||||
final EntityPlayer player )
|
||||
public void closeInventory( final EntityPlayer player )
|
||||
{
|
||||
this.inv.closeInventory( player );
|
||||
}
|
||||
@@ -138,8 +136,7 @@ public class WrapperInvSlot
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getField(
|
||||
final int id )
|
||||
public int getField( final int id )
|
||||
{
|
||||
return this.inv.getField( id );
|
||||
}
|
||||
@@ -163,9 +160,7 @@ public class WrapperInvSlot
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setField(
|
||||
final int id,
|
||||
final int value )
|
||||
public void setField( final int id, final int value )
|
||||
{
|
||||
this.inv.setField( id, value );
|
||||
}
|
||||
|
||||
@@ -135,15 +135,13 @@ public class WrapperInventoryRange implements IInventory
|
||||
}
|
||||
|
||||
@Override
|
||||
public void openInventory(
|
||||
final EntityPlayer player )
|
||||
public void openInventory( final EntityPlayer player )
|
||||
{
|
||||
this.src.openInventory( player );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void closeInventory(
|
||||
final EntityPlayer player )
|
||||
public void closeInventory( final EntityPlayer player )
|
||||
{
|
||||
this.src.closeInventory( player );
|
||||
}
|
||||
@@ -155,8 +153,7 @@ public class WrapperInventoryRange implements IInventory
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getField(
|
||||
final int id )
|
||||
public int getField( final int id )
|
||||
{
|
||||
return this.src.getField( id );
|
||||
}
|
||||
@@ -174,9 +171,7 @@ public class WrapperInventoryRange implements IInventory
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setField(
|
||||
final int id,
|
||||
final int value )
|
||||
public void setField( final int id, final int value )
|
||||
{
|
||||
this.src.setField( id, value );
|
||||
}
|
||||
|
||||
@@ -45,8 +45,7 @@ public class OreHelper
|
||||
/**
|
||||
* A local cache to speed up OreDictionary lookups.
|
||||
*/
|
||||
private final LoadingCache<String, List<ItemStack>> oreDictCache = CacheBuilder.newBuilder().build( new CacheLoader<String, List<ItemStack>>()
|
||||
{
|
||||
private final LoadingCache<String, List<ItemStack>> oreDictCache = CacheBuilder.newBuilder().build( new CacheLoader<String, List<ItemStack>>(){
|
||||
@Override
|
||||
public List<ItemStack> load( final String oreName )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user