Package appeng.core.sync.packets

Examples of appeng.core.sync.packets.PacketMEInventoryUpdate.appendItem()


            if ( p.getStackSize() > 0 )
              b.appendItem( p );

            if ( c != null && m != null && m.getStackSize() > 0 )
              c.appendItem( m );
          }

          for (Object g : this.crafters)
          {
            if ( g instanceof EntityPlayer )
View Full Code Here


              list.add( ais );
            }
          }

          for (IAEItemStack ais : list)
            piu.appendItem( ais );
        }

        for (Object c : this.crafters)
        {
          if ( c instanceof EntityPlayer )
View Full Code Here

        for (IAEItemStack out : list)
        {
          a.appendItem( monitor.getItemStack( out, CraftingItemList.STORAGE ) );
          b.appendItem( monitor.getItemStack( out, CraftingItemList.ACTIVE ) );
          c.appendItem( monitor.getItemStack( out, CraftingItemList.PENDING ) );
        }

        list.resetStatus();

        for (Object g : this.crafters)
View Full Code Here

          {
            IAEItemStack send = monitorCache.findPrecise( is );
            if ( send == null )
            {
              is.setStackSize( 0 );
              piu.appendItem( is );
            }
            else
              piu.appendItem( send );
          }
View Full Code Here

            {
              is.setStackSize( 0 );
              piu.appendItem( is );
            }
            else
              piu.appendItem( send );
          }

          if ( !piu.isEmpty() )
          {
            items.resetStatus();
View Full Code Here

        for (IAEItemStack send : monitorCache)
        {
          try
          {
            piu.appendItem( send );
          }
          catch (BufferOverflowException boe)
          {
            NetworkHandler.instance.sendTo( piu, (EntityPlayerMP) c );
View Full Code Here

          catch (BufferOverflowException boe)
          {
            NetworkHandler.instance.sendTo( piu, (EntityPlayerMP) c );

            piu = new PacketMEInventoryUpdate();
            piu.appendItem( send );
          }
        }

        NetworkHandler.instance.sendTo( piu, (EntityPlayerMP) c );
      }
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.