Puts everywhere brackets
This commit is contained in:
@@ -46,7 +46,9 @@ public class ItemEncodedPatternRenderer implements IItemRenderer
|
||||
{
|
||||
ItemEncodedPattern iep = (ItemEncodedPattern) item.getItem();
|
||||
if( iep.getOutput( item ) != null )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
@@ -52,7 +52,9 @@ public class PaintBallRender implements IItemRenderer
|
||||
{
|
||||
IIcon par2Icon = item.getIconIndex();
|
||||
if( item.getItemDamage() >= 20 )
|
||||
{
|
||||
par2Icon = ExtraItemTextures.ItemPaintBallShimmer.getIcon();
|
||||
}
|
||||
|
||||
float f4 = par2Icon.getMinU();
|
||||
float f5 = par2Icon.getMaxU();
|
||||
@@ -77,9 +79,13 @@ public class PaintBallRender implements IItemRenderer
|
||||
float fail = 0.7f;
|
||||
|
||||
if( item.getItemDamage() >= 20 )
|
||||
{
|
||||
GL11.glColor4ub( (byte) ( full + r * fail ), (byte) ( full + g * fail ), (byte) ( full + b * fail ), (byte) 255 );
|
||||
}
|
||||
else
|
||||
{
|
||||
GL11.glColor4ub( (byte) r, (byte) g, (byte) b, (byte) 255 );
|
||||
}
|
||||
|
||||
if( type == ItemRenderType.INVENTORY )
|
||||
{
|
||||
@@ -99,9 +105,13 @@ public class PaintBallRender implements IItemRenderer
|
||||
else
|
||||
{
|
||||
if( type == ItemRenderType.EQUIPPED_FIRST_PERSON )
|
||||
{
|
||||
GL11.glTranslatef( 0.0F, 0.0F, 0.0F );
|
||||
}
|
||||
else
|
||||
{
|
||||
GL11.glTranslatef( -0.5F, -0.3F, 0.01F );
|
||||
}
|
||||
ItemRenderer.renderItemIn2D( tessellator, f5, f6, f4, f7, par2Icon.getIconWidth(), par2Icon.getIconHeight(), f12 );
|
||||
|
||||
GL11.glDisable( GL11.GL_CULL_FACE );
|
||||
|
||||
@@ -100,7 +100,9 @@ public class ToolBiometricCardRender implements IItemRenderer
|
||||
{
|
||||
GameProfile gp = ( (IBiometricCard) item.getItem() ).getProfile( item );
|
||||
if( gp != null )
|
||||
{
|
||||
username = gp.getName();
|
||||
}
|
||||
}
|
||||
int hash = username.length() > 0 ? username.hashCode() : 0;
|
||||
|
||||
@@ -113,7 +115,9 @@ public class ToolBiometricCardRender implements IItemRenderer
|
||||
|
||||
AEColor col = AEColor.values()[Math.abs( 3 + hash ) % AEColor.values().length];
|
||||
if( hash == 0 )
|
||||
{
|
||||
col = AEColor.Black;
|
||||
}
|
||||
|
||||
for( int x = 0; x < 8; x++ )// 8
|
||||
{
|
||||
@@ -123,14 +127,22 @@ public class ToolBiometricCardRender implements IItemRenderer
|
||||
float scale = 0.3f / 255.0f;
|
||||
|
||||
if( x == 0 || y == 0 || x == 7 || y == 5 )
|
||||
{
|
||||
isLit = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
isLit = ( hash & ( 1 << x ) ) != 0 || ( hash & ( 1 << y ) ) != 0;
|
||||
}
|
||||
|
||||
if( isLit )
|
||||
{
|
||||
tessellator.setColorOpaque_I( col.mediumVariant );
|
||||
}
|
||||
else
|
||||
{
|
||||
tessellator.setColorOpaque_F( ( ( col.blackVariant >> 16 ) & 0xff ) * scale, ( ( col.blackVariant >> 8 ) & 0xff ) * scale, ( col.blackVariant & 0xff ) * scale );
|
||||
}
|
||||
|
||||
tessellator.addVertexWithUV( x, y, z, u, v );
|
||||
tessellator.addVertexWithUV( x + 1, y, z, u, v );
|
||||
|
||||
@@ -81,11 +81,17 @@ public class ToolColorApplicatorRender implements IItemRenderer
|
||||
else
|
||||
{
|
||||
if( type == ItemRenderType.EQUIPPED_FIRST_PERSON )
|
||||
{
|
||||
GL11.glTranslatef( 0.0F, 0.0F, 0.0F );
|
||||
}
|
||||
else if( type == ItemRenderType.EQUIPPED )
|
||||
{
|
||||
GL11.glTranslatef( 0.0F, 0.0F, 0.0F );
|
||||
}
|
||||
else
|
||||
{
|
||||
GL11.glTranslatef( -0.5F, -0.3F, 0.01F );
|
||||
}
|
||||
ItemRenderer.renderItemIn2D( tessellator, f5, f6, f4, f7, par2Icon.getIconWidth(), par2Icon.getIconHeight(), f12 );
|
||||
|
||||
GL11.glDisable( GL11.GL_CULL_FACE );
|
||||
@@ -101,7 +107,9 @@ public class ToolColorApplicatorRender implements IItemRenderer
|
||||
|
||||
GL11.glScalef( 1F / 16F, 1F / 16F, 1F );
|
||||
if( type != ItemRenderType.INVENTORY )
|
||||
{
|
||||
GL11.glTranslatef( 2, 0, 0 );
|
||||
}
|
||||
GL11.glDisable( GL11.GL_LIGHTING );
|
||||
|
||||
AEColor col = null;
|
||||
|
||||
Reference in New Issue
Block a user