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:
@@ -33,8 +33,8 @@ import appeng.tile.misc.TileInscriber;
|
||||
public class GuiInscriber extends AEBaseGui
|
||||
{
|
||||
|
||||
final ContainerInscriber cvc;
|
||||
GuiProgressBar pb;
|
||||
private final ContainerInscriber cvc;
|
||||
private GuiProgressBar pb;
|
||||
|
||||
public GuiInscriber( final InventoryPlayer inventoryPlayer, final TileInscriber te )
|
||||
{
|
||||
@@ -44,7 +44,7 @@ public class GuiInscriber extends AEBaseGui
|
||||
this.xSize = this.hasToolbox() ? 246 : 211;
|
||||
}
|
||||
|
||||
protected boolean hasToolbox()
|
||||
private boolean hasToolbox()
|
||||
{
|
||||
return ( (ContainerUpgradeable) this.inventorySlots ).hasToolbox();
|
||||
}
|
||||
@@ -86,7 +86,7 @@ public class GuiInscriber extends AEBaseGui
|
||||
}
|
||||
}
|
||||
|
||||
protected boolean drawUpgrades()
|
||||
private boolean drawUpgrades()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user