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
@@ -121,7 +121,7 @@ public abstract class AbstractPartTerminal extends AbstractPartDisplay implement
return true;
}
Platform.openGUI( player, this.getHost().getTile(), this.side, this.getGui( player ) );
Platform.openGUI( player, this.getHost().getTile(), this.getSide(), this.getGui( player ) );
return true;
}
@@ -139,7 +139,7 @@ public abstract class AbstractPartTerminal extends AbstractPartDisplay implement
{
try
{
return this.proxy.getStorage().getItemInventory();
return this.getProxy().getStorage().getItemInventory();
}
catch( final GridAccessException e )
{
@@ -153,7 +153,7 @@ public abstract class AbstractPartTerminal extends AbstractPartDisplay implement
{
try
{
return this.proxy.getStorage().getFluidInventory();
return this.getProxy().getStorage().getFluidInventory();
}
catch( final GridAccessException e )
{
@@ -177,6 +177,6 @@ public abstract class AbstractPartTerminal extends AbstractPartDisplay implement
@Override
public void onChangeInventory( final IInventory inv, final int slot, final InvOperation mc, final ItemStack removedStack, final ItemStack newStack )
{
this.host.markForSave();
this.getHost().markForSave();
}
}