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,7 +29,7 @@ import appeng.client.texture.TmpFlippableIcon;
|
||||
public class BlockRenderInfo
|
||||
{
|
||||
|
||||
public final BaseBlockRender rendererInstance;
|
||||
private final BaseBlockRender rendererInstance;
|
||||
private final TmpFlippableIcon tmpTopIcon = new TmpFlippableIcon();
|
||||
private final TmpFlippableIcon tmpBottomIcon = new TmpFlippableIcon();
|
||||
private final TmpFlippableIcon tmpSouthIcon = new TmpFlippableIcon();
|
||||
@@ -132,8 +132,13 @@ public class BlockRenderInfo
|
||||
return this.topIcon;
|
||||
}
|
||||
|
||||
public boolean isValid()
|
||||
boolean isValid()
|
||||
{
|
||||
return this.topIcon != null && this.bottomIcon != null && this.southIcon != null && this.northIcon != null && this.eastIcon != null && this.westIcon != null;
|
||||
}
|
||||
|
||||
public BaseBlockRender getRendererInstance()
|
||||
{
|
||||
return this.rendererInstance;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user