Examples of AEItemStack


Examples of appeng.util.item.AEItemStack

    data.writeByte( slot );
    for (int num = 0; num < inv.getSizeInventory(); num++)
    {
      if ( (slot & (1 << num)) > 0 )
      {
        AEItemStack st = AEItemStack.create( inv.getStackInSlot( num ) );
        st.writeToPacket( data );
      }
    }
  }
View Full Code Here

Examples of appeng.util.item.AEItemStack

  }

  @TileEvent(TileEventType.NETWORK_WRITE)
  public void writeToStream_TileCharger(ByteBuf data) throws IOException
  {
    AEItemStack is = AEItemStack.create( getStackInSlot( 0 ) );
    if ( is != null )
      is.writeToPacket( data );
  }
View Full Code Here

Examples of appeng.util.item.AEItemStack

      return new ArrayList();

    ItemStack itemStack = null;
    if ( o instanceof AEItemStack )
    {
      AEItemStack ais = (AEItemStack) o;
      return ais.getToolTip();
    }
    else if ( o instanceof ItemStack )
      itemStack = (ItemStack) o;
    else
      return new ArrayList();
View Full Code Here

Examples of appeng.util.item.AEItemStack

    if ( energySrc.extractAEPower( 1, Actionable.SIMULATE, PowerMultiplier.CONFIG ) > 0.9 )
    {
      if ( providedTemplate == null )
        return null;

      AEItemStack ae_req = AEItemStack.create( providedTemplate );
      ae_req.setStackSize( 1 );

      if ( filter == null || filter.isListed( ae_req ) )
      {
        IAEItemStack ae_ext = src.extractItems( ae_req, realForFake, mySrc );
        if ( ae_ext != null )
        {
          ItemStack extracted = ae_ext.getItemStack();
          if ( extracted != null )
          {
            energySrc.extractAEPower( 1, realForFake, PowerMultiplier.CONFIG );
            return extracted;
          }
        }
      }

      boolean checkFuzzy = ae_req.isOre() || providedTemplate.getItemDamage() == OreDictionary.WILDCARD_VALUE || providedTemplate.hasTagCompound()
          || providedTemplate.isItemStackDamageable();

      if ( items != null && checkFuzzy )
      {
        for (IAEItemStack x : items)
        {
          ItemStack sh = x.getItemStack();
          if ( (Platform.isSameItemType( providedTemplate, sh ) || ae_req.sameOre( x )) && !Platform.isSameItem( sh, output ) )
          { // Platform.isSameItemType( sh, providedTemplate )
            ItemStack cp = Platform.cloneItemStack( sh );
            cp.stackSize = 1;
            ci.setInventorySlotContents( slot, cp );
            if ( r.matches( ci, w ) && Platform.isSameItem( r.getCraftingResult( ci ), output ) )
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.