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:
@@ -79,19 +79,19 @@ public class RenderBlockPaint extends BaseBlockRender<BlockPaint, TilePaint>
|
||||
final int lumen = 14 << 20 | 14 << 4;
|
||||
for( final Splotch s : tp.getDots() )
|
||||
{
|
||||
if( !validSides.contains( s.side ) )
|
||||
if( !validSides.contains( s.getSide() ) )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if( s.lumen )
|
||||
if( s.isLumen() )
|
||||
{
|
||||
tess.setColorOpaque_I( s.color.whiteVariant );
|
||||
tess.setColorOpaque_I( s.getColor().whiteVariant );
|
||||
tess.setBrightness( lumen );
|
||||
}
|
||||
else
|
||||
{
|
||||
tess.setColorOpaque_I( s.color.mediumVariant );
|
||||
tess.setColorOpaque_I( s.getColor().mediumVariant );
|
||||
tess.setBrightness( brightness );
|
||||
}
|
||||
|
||||
@@ -106,13 +106,13 @@ public class RenderBlockPaint extends BaseBlockRender<BlockPaint, TilePaint>
|
||||
pos_x = Math.max( buffer, Math.min( 1.0 - buffer, pos_x ) );
|
||||
pos_y = Math.max( buffer, Math.min( 1.0 - buffer, pos_y ) );
|
||||
|
||||
if( s.side == EnumFacing.SOUTH || s.side == EnumFacing.NORTH )
|
||||
if( s.getSide() == EnumFacing.SOUTH || s.getSide() == EnumFacing.NORTH )
|
||||
{
|
||||
pos_x += x;
|
||||
pos_y += y;
|
||||
}
|
||||
|
||||
else if( s.side == EnumFacing.UP || s.side == EnumFacing.DOWN )
|
||||
else if( s.getSide() == EnumFacing.UP || s.getSide() == EnumFacing.DOWN )
|
||||
{
|
||||
pos_x += x;
|
||||
pos_y += z;
|
||||
@@ -123,18 +123,18 @@ public class RenderBlockPaint extends BaseBlockRender<BlockPaint, TilePaint>
|
||||
pos_x += y;
|
||||
pos_y += z;
|
||||
}
|
||||
|
||||
|
||||
final IAESprite ico = icoSet[s.getSeed() % icoSet.length];
|
||||
final EnumFacing rs = s.side.getOpposite();
|
||||
|
||||
switch( s.side )
|
||||
final EnumFacing rs = s.getSide().getOpposite();
|
||||
|
||||
switch( s.getSide() )
|
||||
{
|
||||
case UP:
|
||||
offset = 1.0 - offset;
|
||||
tess.addVertexWithUV( rs,pos_x - buffer, y + offset, pos_y - buffer, ico.getMinU(), ico.getMinV() );
|
||||
tess.addVertexWithUV( rs,pos_x + buffer, y + offset, pos_y - buffer, ico.getMaxU(), ico.getMinV() );
|
||||
tess.addVertexWithUV( rs,pos_x + buffer, y + offset, pos_y + buffer, ico.getMaxU(), ico.getMaxV() );
|
||||
tess.addVertexWithUV( rs,pos_x - buffer, y + offset, pos_y + buffer, ico.getMinU(), ico.getMaxV() );
|
||||
tess.addVertexWithUV( rs, pos_x - buffer, y + offset, pos_y - buffer, ico.getMinU(), ico.getMinV() );
|
||||
tess.addVertexWithUV( rs, pos_x + buffer, y + offset, pos_y - buffer, ico.getMaxU(), ico.getMinV() );
|
||||
tess.addVertexWithUV( rs, pos_x + buffer, y + offset, pos_y + buffer, ico.getMaxU(), ico.getMaxV() );
|
||||
tess.addVertexWithUV( rs, pos_x - buffer, y + offset, pos_y + buffer, ico.getMinU(), ico.getMaxV() );
|
||||
break;
|
||||
|
||||
case DOWN:
|
||||
|
||||
Reference in New Issue
Block a user