Package appeng.api.networking.crafting

Examples of appeng.api.networking.crafting.ICraftingGrid


  }

  @Override
  public void detectAndSendChanges()
  {
    ICraftingGrid cc = network.getCache( ICraftingGrid.class );
    ImmutableSet<ICraftingCPU> cpuSet = cc.getCpus();

    int matches = 0;
    boolean changed = false;
    for (ICraftingCPU c : cpuSet)
    {
View Full Code Here


  public void detectAndSendChanges()
  {
    if ( Platform.isClient() )
      return;

    ICraftingGrid cc = getGrid().getCache( ICraftingGrid.class );
    ImmutableSet<ICraftingCPU> cpuSet = cc.getCpus();

    int matches = 0;
    boolean changed = false;
    for (ICraftingCPU c : cpuSet)
    {
View Full Code Here

    if ( ah instanceof PartPatternTerminal )
      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

    storage = AEApi.instance().storage().createItemList();
    prophecies = new HashSet<IAEItemStack>();
    this.actionSrc = actionSrc;

    this.callback = callback;
    ICraftingGrid cc = grid.getCache( ICraftingGrid.class );
    IStorageGrid sg = grid.getCache( IStorageGrid.class );
    original = new MECraftingInventory( sg.getItemInventory(), actionSrc, false, false, false );

    tree = getCraftingTree( cc, what );
    availableCheck = null;
View Full Code Here

  {
    IGrid grid = getGrid();
    if ( grid == null )
      throw new GridAccessException();

    ICraftingGrid sg = grid.getCache( ICraftingGrid.class );

    if ( sg == null )
      throw new GridAccessException();

    return sg;
View Full Code Here

    try
    {
      InventoryAdaptor d = getHandler();
      IMEMonitor<IAEItemStack> inv = proxy.getStorage().getItemInventory();
      IEnergyGrid energy = proxy.getEnergy();
      ICraftingGrid cg = proxy.getCrafting();
      FuzzyMode fzMode = (FuzzyMode) getConfigManager().getSetting( Settings.FUZZY_MODE );

      if ( d != null )
      {
        for (int x = 0; x < availableSlots() && itemToSend > 0; x++)
View Full Code Here

        cca.whatToMake.setStackSize( amount );

        try
        {
          ICraftingGrid cg = g.getCache( ICraftingGrid.class );
          futureJob = cg.beginCraftingJob( cca.getWorld(), cca.getGrid(), cca.getActionSrc(), cca.whatToMake, null );

          ContainerOpenContext context = cca.openContext;
          if ( context != null )
          {
            TileEntity te = context.getTile();
View Full Code Here

TOP

Related Classes of appeng.api.networking.crafting.ICraftingGrid

Copyright © 2018 www.massapicom. 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.