Examples of ICraftingLink


Examples of appeng.api.networking.crafting.ICraftingLink

      OriginalGui = GuiBridge.GUI_PATTERN_TERMINAL;

    if ( result != null && !simulation )
    {
      ICraftingGrid cc = getGrid().getCache( ICraftingGrid.class );
      ICraftingLink g = cc.submitJob( result, null, selectedCpu == -1 ? null : cpus.get( selectedCpu ).cpu, true, getActionSrc() );
      autoStart = false;
      if ( g != null && OriginalGui != null && openContext != null )
      {
        NetworkHandler.instance.sendTo( new PacketSwitchGuis( OriginalGui ), (EntityPlayerMP) invPlayer.player );
View Full Code Here

Examples of appeng.api.networking.crafting.ICraftingLink

        myLastLink = new CraftingLink( generateLinkData( craftID, requestingMachine == null, false ), this );

        if ( requestingMachine == null )
          return myLastLink;

        ICraftingLink whatLink = new CraftingLink( generateLinkData( craftID, false, true ), requestingMachine );

        submitLink( myLastLink );
        submitLink( whatLink );

        IItemList<IAEItemStack> list;
View Full Code Here

Examples of appeng.api.networking.crafting.ICraftingLink

  public void writeToNBT(NBTTagCompound extra)
  {
    for (int x = 0; x < size; x++)
    {
      ICraftingLink link = getLink( x );
      if ( link != null )
      {
        NBTTagCompound ln = new NBTTagCompound();
        link.writeToNBT( ln );
        extra.setTag( "links-" + x, ln );
      }
    }
  }
View Full Code Here

Examples of appeng.api.networking.crafting.ICraftingLink

    links[slot] = l;

    boolean hasStuff = false;
    for (int x = 0; x < links.length; x++)
    {
      ICraftingLink g = links[x];

      if ( g == null || g.isCanceled() || g.isDone() )
        links[x] = null;
      else
        hasStuff = true;
    }
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.