Examples of ItemPaintBall


Examples of appeng.items.misc.ItemPaintBall

  public void addBlot(ItemStack type, ForgeDirection side, Vec3 hitVec)
  {
    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>();

      if ( dots.size() > 20 )
View Full Code Here

Examples of appeng.items.misc.ItemPaintBall

    float f5 = par2Icon.getMaxU();
    float f6 = par2Icon.getMinV();
    float f7 = par2Icon.getMaxV();
    float f12 = 0.0625F;

    ItemPaintBall ipb = (ItemPaintBall) item.getItem();

    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.items.misc.ItemPaintBall

      AELog.error( err );
    }

    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();
View Full Code Here

Examples of appeng.items.misc.ItemPaintBall

    if ( paintBall.getItem() instanceof ItemSnowball )
      return AEColor.Transparent;

    if ( paintBall.getItem() instanceof ItemPaintBall )
    {
      ItemPaintBall ipb = (ItemPaintBall) paintBall.getItem();
      return ipb.getColor( paintBall );
    }
    else
    {
      int[] id = OreDictionary.getOreIDs( paintBall );
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.