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
@@ -38,8 +38,8 @@ import appeng.util.Platform;
public class Crusher implements ICraftHandler, IWebsiteSerializer
{
IIngredient pro_input;
IIngredient[] pro_output;
private IIngredient pro_input;
private IIngredient[] pro_output;
@Override
public void setup( final List<List<IIngredient>> input, final List<List<IIngredient>> output ) throws RecipeError
@@ -35,8 +35,8 @@ import appeng.util.Platform;
public class Grind implements ICraftHandler, IWebsiteSerializer
{
IIngredient pro_input;
IIngredient[] pro_output;
private IIngredient pro_input;
private IIngredient[] pro_output;
@Override
public void setup( final List<List<IIngredient>> input, final List<List<IIngredient>> output ) throws RecipeError
@@ -38,8 +38,8 @@ import appeng.util.Platform;
public class GrindFZ implements ICraftHandler, IWebsiteSerializer
{
IIngredient pro_input;
IIngredient[] pro_output;
private IIngredient pro_input;
private IIngredient[] pro_output;
@Override
public void setup( final List<List<IIngredient>> input, final List<List<IIngredient>> output ) throws RecipeError
@@ -37,8 +37,8 @@ import appeng.util.Platform;
public class HCCrusher implements ICraftHandler, IWebsiteSerializer
{
IIngredient pro_input;
IIngredient[] pro_output;
private IIngredient pro_input;
private IIngredient[] pro_output;
@Override
public void setup( final List<List<IIngredient>> input, final List<List<IIngredient>> output ) throws RecipeError
@@ -38,8 +38,8 @@ import appeng.util.Platform;
public class Macerator implements ICraftHandler, IWebsiteSerializer
{
IIngredient pro_input;
IIngredient[] pro_output;
private IIngredient pro_input;
private IIngredient[] pro_output;
@Override
public void setup( final List<List<IIngredient>> input, final List<List<IIngredient>> output ) throws RecipeError
@@ -38,8 +38,8 @@ import appeng.util.Platform;
public class MekCrusher implements ICraftHandler, IWebsiteSerializer
{
IIngredient pro_input;
IIngredient[] pro_output;
private IIngredient pro_input;
private IIngredient[] pro_output;
@Override
public void setup( final List<List<IIngredient>> input, final List<List<IIngredient>> output ) throws RecipeError
@@ -38,8 +38,8 @@ import appeng.util.Platform;
public class MekEnrichment implements ICraftHandler, IWebsiteSerializer
{
IIngredient pro_input;
IIngredient[] pro_output;
private IIngredient pro_input;
private IIngredient[] pro_output;
@Override
public void setup( final List<List<IIngredient>> input, final List<List<IIngredient>> output ) throws RecipeError
@@ -33,8 +33,8 @@ import appeng.api.recipes.IIngredient;
public class OreRegistration implements ICraftHandler
{
final List<IIngredient> inputs;
final String name;
private final List<IIngredient> inputs;
private final String name;
public OreRegistration( final List<IIngredient> in, final String out )
{
@@ -36,8 +36,8 @@ import appeng.util.Platform;
public class Pulverizer implements ICraftHandler, IWebsiteSerializer
{
IIngredient pro_input;
IIngredient[] pro_output;
private IIngredient pro_input;
private IIngredient[] pro_output;
@Override
public void setup( final List<List<IIngredient>> input, final List<List<IIngredient>> output ) throws RecipeError
@@ -38,8 +38,8 @@ import appeng.util.Platform;
public class Shaped implements ICraftHandler, IWebsiteSerializer
{
List<List<IIngredient>> inputs;
IIngredient output;
private List<List<IIngredient>> inputs;
private IIngredient output;
private int rows;
private int cols;
@@ -38,8 +38,8 @@ import appeng.util.Platform;
public class Shapeless implements ICraftHandler, IWebsiteSerializer
{
List<IIngredient> inputs;
IIngredient output;
private List<IIngredient> inputs;
private IIngredient output;
@Override
public void setup( final List<List<IIngredient>> input, final List<List<IIngredient>> output ) throws RecipeError
@@ -35,8 +35,8 @@ import appeng.util.Platform;
public class Smelt implements ICraftHandler, IWebsiteSerializer
{
IIngredient in;
IIngredient out;
private IIngredient in;
private IIngredient out;
@Override
public void setup( final List<List<IIngredient>> input, final List<List<IIngredient>> output ) throws RecipeError