Examples of IEnergyGrid


Examples of appeng.api.networking.energy.IEnergyGrid

  {
    double demand = 0;

    try
    {
      IEnergyGrid eg = proxy.getEnergy();
      demand += eg.getEnergyDemand( amt - demand, seen );
    }
    catch (GridAccessException e)
    {
      // :P
    }

    try
    {
      IEnergyGrid eg = outerProxy.getEnergy();
      demand += eg.getEnergyDemand( amt - demand, seen );
    }
    catch (GridAccessException e)
    {
      // :P
    }
View Full Code Here

Examples of appeng.api.networking.energy.IEnergyGrid

          break;
        }

        itemToSend = Math.min( itemToSend, (int) (0.01 + proxy.getEnergy().extractAEPower( itemToSend, Actionable.SIMULATE, PowerMultiplier.CONFIG )) );
        IMEMonitor<IAEItemStack> inv = proxy.getStorage().getItemInventory();
        IEnergyGrid energy = proxy.getEnergy();

        boolean Configured = false;
        for (int x = 0; x < availableSlots(); x++)
        {
          IAEItemStack ais = config.getAEStackInSlot( x );
View Full Code Here

Examples of appeng.api.networking.energy.IEnergyGrid

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

Examples of appeng.api.networking.energy.IEnergyGrid

    try
    {
      if ( d != null && proxy.isActive() )
      {
        IEnergyGrid energy = proxy.getEnergy();

        double power = items.getStackSize();
        if ( energy.extractAEPower( power, mode, PowerMultiplier.CONFIG ) > power - 0.01 )
        {
          if ( mode == Actionable.MODULATE )
            return AEItemStack.create( d.addItems( items.getItemStack() ) );
          return AEItemStack.create( d.simulateAdd( items.getItemStack() ) );
        }
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.