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:
@@ -29,14 +29,15 @@ import appeng.util.ItemSorters;
|
||||
public class ClientDCInternalInv implements Comparable<ClientDCInternalInv>
|
||||
{
|
||||
|
||||
public final String unlocalizedName;
|
||||
public final AppEngInternalInventory inv;
|
||||
public final long id;
|
||||
public final long sortBy;
|
||||
private final String unlocalizedName;
|
||||
private final AppEngInternalInventory inventory;
|
||||
|
||||
private final long id;
|
||||
private final long sortBy;
|
||||
|
||||
public ClientDCInternalInv( final int size, final long id, final long sortBy, final String unlocalizedName )
|
||||
{
|
||||
this.inv = new AppEngInternalInventory( null, size );
|
||||
this.inventory = new AppEngInternalInventory( null, size );
|
||||
this.unlocalizedName = unlocalizedName;
|
||||
this.id = id;
|
||||
this.sortBy = sortBy;
|
||||
@@ -57,4 +58,14 @@ public class ClientDCInternalInv implements Comparable<ClientDCInternalInv>
|
||||
{
|
||||
return ItemSorters.compareLong( this.sortBy, o.sortBy );
|
||||
}
|
||||
|
||||
public AppEngInternalInventory getInventory()
|
||||
{
|
||||
return this.inventory;
|
||||
}
|
||||
|
||||
public long getId()
|
||||
{
|
||||
return this.id;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user