Reduces visibility of internal fields/methods

Reduces the visibility of all fields to private and create setters/getters
when necessary. Exceptions are fields with GuiSync as these need to be
public.

Reduces the visibility of internal methods to private/protected/default when possible.
This commit is contained in:
yueh
2015-10-08 15:42:42 +02:00
parent f054bd699b
commit e94a0cfccf
497 changed files with 7865 additions and 6908 deletions
@@ -111,10 +111,10 @@ public class OreHelper
return this.references.get( ir );
}
public boolean sameOre( final AEItemStack aeItemStack, final IAEItemStack is )
boolean sameOre( final AEItemStack aeItemStack, final IAEItemStack is )
{
final OreReference a = aeItemStack.def.isOre;
final OreReference b = aeItemStack.def.isOre;
final OreReference a = aeItemStack.getDefinition().getIsOre();
final OreReference b = aeItemStack.getDefinition().getIsOre();
return this.sameOre( a, b );
}
@@ -143,9 +143,9 @@ public class OreHelper
return false;
}
public boolean sameOre( final AEItemStack aeItemStack, final ItemStack o )
boolean sameOre( final AEItemStack aeItemStack, final ItemStack o )
{
final OreReference a = aeItemStack.def.isOre;
final OreReference a = aeItemStack.getDefinition().getIsOre();
if( a == null )
{
return false;
@@ -165,7 +165,7 @@ public class OreHelper
return false;
}
public List<ItemStack> getCachedOres( final String oreName )
List<ItemStack> getCachedOres( final String oreName )
{
return this.oreDictCache.getUnchecked( oreName );
}