Examples of AEColor


Examples of appeng.api.util.AEColor

  public boolean readFromStream_TileSecurity(ByteBuf data)
  {
    boolean wasActive = isActive;
    isActive = data.readBoolean();

    AEColor oldPaintedColor = paintedColor;
    paintedColor = AEColor.values()[data.readByte()];

    return oldPaintedColor != paintedColor || wasActive != isActive;
  }
View Full Code Here

Examples of appeng.api.util.AEColor

          if ( color == ExtraBlockTextures.BlockCraftingMonitorFit_Light.getIcon() )
          {
            int b = w.getLightBrightnessForSkyBlocks( x + side.offsetX, y + side.offsetY, z + side.offsetZ, 0 );

            TileCraftingMonitorTile sr = blk.getTileEntity( w, x, y, z );
            AEColor col = sr.getColor();

            Tessellator.instance.setBrightness( b );
            Tessellator.instance.setColorOpaque_I( col.whiteVariant );
            i.renderFace( x, y, z, color, side, renderer );

            Tessellator.instance.setColorOpaque_I( col.mediumVariant );
            i.renderFace( x, y, z, ExtraBlockTextures.BlockCraftingMonitorFit_Medium.getIcon(), side, renderer );

            Tessellator.instance.setColorOpaque_I( col.blackVariant );
            i.renderFace( x, y, z, ExtraBlockTextures.BlockCraftingMonitorFit_Dark.getIcon(), side, renderer );
          }
          else
            i.renderBlockCurrentBounds( x, y, z, renderer );
        }
        else
        {
          if ( isMonitor )
          {
            TileCraftingMonitorTile sr = blk.getTileEntity( w, x, y, z );
            AEColor col = sr.getColor();

            Tessellator.instance.setColorOpaque_I( col.whiteVariant );
            Tessellator.instance.setBrightness( 13 << 20 | 13 << 4 );
            i.renderFace( x, y, z, color, side, renderer );
View Full Code Here

Examples of appeng.api.util.AEColor

  {
    int oldState = state;
    ItemStack oldType = storageType;

    state = data.readByte();
    AEColor oldPaintedColor = paintedColor;
    paintedColor = AEColor.values()[data.readByte()];

    int item = data.readInt();

    if ( item == 0 )
View Full Code Here

Examples of appeng.api.util.AEColor

    Block blk = worldObj.getBlock( xCoord + side.offsetX, yCoord + side.offsetY, zCoord + side.offsetZ );
    if ( blk.isSideSolid( worldObj, xCoord + side.offsetX, yCoord + side.offsetY, zCoord + side.offsetZ, side.getOpposite() ) )
    {
      ItemPaintBall ipb = (ItemPaintBall) type.getItem();

      AEColor col = ipb.getColor( type );
      boolean lit = ipb.isLumen( type );

      if ( dots == null )
        dots = new ArrayList<Splotch>();
View Full Code Here

Examples of appeng.api.util.AEColor

  public void postPlayerRender(RenderLivingEvent.Pre p)
  {
    PlayerColor player = TickHandler.instance.getPlayerColors().get( p.entity.getEntityId() );
    if ( player != null )
    {
      AEColor col = player.myColor;

      float r = 0xff & (col.mediumVariant >> 16);
      float g = 0xff & (col.mediumVariant >> 8);
      float b = 0xff & (col.mediumVariant);
      GL11.glColor3f( r / 255.0f, g / 255.0f, b / 255.0f );
View Full Code Here

Examples of appeng.api.util.AEColor

    return null;
  }

  private Object paintBall(AEColoredItemDefinition partType, String substring, boolean lumen)
  {
    AEColor col = AEColor.Transparent;

    try
    {
      col = AEColor.valueOf( substring );
    }
View Full Code Here

Examples of appeng.api.util.AEColor

    return new ResolverResult( "ItemPaintBall", (lumen ? 20 : 0) + is.getItemDamage() );
  }

  private Object cableItem(AEColoredItemDefinition partType, String substring)
  {
    AEColor col = AEColor.Transparent;

    try
    {
      col = AEColor.valueOf( substring );
    }
View Full Code Here

Examples of appeng.api.util.AEColor

  {
    TileEntity te = this.tile.getWorldObj().getTileEntity( x + of.offsetX, y + of.offsetY, z + of.offsetZ );
    IPartHost partHost = te instanceof IPartHost ? (IPartHost) te : null;
    IGridHost ghh = te instanceof IGridHost ? (IGridHost) te : null;
    boolean isGlass = false;
    AEColor myColor = getCableColor();
    /*
     * ( ghh != null && partHost != null && ghh.getCableConnectionType( of ) == AECableType.GLASS && partHost.getPart(
     * of.getOpposite() ) == null ) { isGlass = true; rh.setTexture( getGlassTexture( myColor = partHost.getColor() ) );
     * } else if ( partHost == null && ghh != null && ghh.getCableConnectionType( of ) != AECableType.GLASS ) {
     * rh.setTexture( getSmartTexture( myColor ) ); switch (of) { case DOWN: rh.setBounds( 3, 0, 3, 13, 4, 13 );
View Full Code Here

Examples of appeng.api.util.AEColor

  AEColor paintedColor = AEColor.Transparent;

  @TileEvent(TileEventType.NETWORK_READ)
  public boolean readFromStream_TileCraftingMonitorTile(ByteBuf data) throws IOException
  {
    AEColor oldPaintedColor = paintedColor;
    paintedColor = AEColor.values()[data.readByte()];

    boolean hasItem = data.readBoolean();

    if ( hasItem )
View Full Code Here

Examples of appeng.api.util.AEColor

    GL11.glDisable( GL11.GL_LIGHTING );

    tessellator.startDrawingQuads();
    float z = 0;

    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
    {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.