Examples of AEColor


Examples of appeng.api.util.AEColor

    GL11.glScalef( 1F / 16F, 1F / 16F, 1F );
    if ( type != ItemRenderType.INVENTORY )
      GL11.glTranslatef( 2, 0, 0 );
    GL11.glDisable( GL11.GL_LIGHTING );

    AEColor col = null;

    col = ((ToolColorApplicator) item.getItem()).getActiveColor( item );

    if ( col != null )
    {
View Full Code Here

Examples of appeng.api.util.AEColor

    Tessellator tessellator = Tessellator.instance;
    GL11.glPushMatrix();
    GL11.glPushAttrib( GL11.GL_ALL_ATTRIB_BITS );

    AEColor col = ipb.getColor( item );

    int colorValue = item.getItemDamage() >= 20 ? col.mediumVariant : col.mediumVariant;
    int r = (colorValue >> 16) & 0xff;
    int g = (colorValue >> 8) & 0xff;
    int b = (colorValue >> 0) & 0xff;
View Full Code Here

Examples of appeng.api.util.AEColor

    if ( pos != null && type != null && type.getItem() instanceof ItemPaintBall )
    {
      ItemPaintBall ipb = (ItemPaintBall) type.getItem();

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

      if ( pos.typeOfHit == MovingObjectType.ENTITY )
      {
        int id = pos.entityHit.getEntityId();
        PlayerColor marker = new PlayerColor( id, col, 20 * 30 );
        TickHandler.instance.getPlayerColors().put( id, marker );

        if ( pos.entityHit instanceof EntitySheep )
        {
          EntitySheep sh = (EntitySheep) pos.entityHit;
          sh.setFleeceColor( col.ordinal() );
        }

        pos.entityHit.attackEntityFrom( DamageSource.causePlayerDamage( p ), 0 );
        NetworkHandler.instance.sendToAll( marker.getPacket() );
      }
View Full Code Here

Examples of appeng.api.util.AEColor

    TileEntity te = getTileEntity( world, x, y, z );

    if ( te instanceof IColorableTile )
    {
      IColorableTile ct = (IColorableTile) te;
      AEColor c = ct.getColor();
      AEColor newColor = AEColor.values()[colour];

      if ( c != newColor )
      {
        ct.recolourBlock( side, newColor, null );
        return true;
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();

    rh.setFacesToRender( EnumSet.complementOf( EnumSet.of( of ) ) );

    if ( ghh != null && partHost != null && ghh.getCableConnectionType( of.getOpposite() ) == AECableType.GLASS && partHost.getPart( of.getOpposite() ) == null
        && partHost.getColor() != AEColor.Transparent )
View Full Code Here

Examples of appeng.api.util.AEColor

          return true;
        }
      }
      else if ( paintBall != null )
      {
        AEColor color = getColorFromItem( paintBall );

        if ( color != null && getAECurrentPower( is ) > powerPerUse )
        {
          if ( color != AEColor.Transparent
              && recolourBlock( blk, ForgeDirection.getOrientation( side ), w, x, y, z, ForgeDirection.getOrientation( side ), color, p ) )
View Full Code Here

Examples of appeng.api.util.AEColor

  @Override
  public String getItemStackDisplayName(ItemStack par1ItemStack)
  {
    String extra = GuiText.Empty.getLocal();

    AEColor selected = getActiveColor( par1ItemStack );

    if ( selected != null && Platform.isClient() )
      extra = Platform.gui_localize( selected.unlocalizedName );

    return super.getItemStackDisplayName( par1ItemStack ) + " - " + extra;
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.