Package appeng.api.networkevents

Examples of appeng.api.networkevents.MENetworkPowerStorage


    boolean newRedstone = worldObj.isBlockIndirectlyGettingPowered(xCoord, yCoord, zCoord) || worldObj.isBlockIndirectlyGettingPowered(xCoord, yCoord + 1, zCoord);
    if (newRedstone != redstonePowered && grid != null)
    {
      if (energy > 0.001D)
      {
        getGrid().postEvent(new MENetworkPowerStorage(this, MENetworkPowerStorage.PowerEventType.PROVIDE_POWER));
      } else if (energy < maxEnergy)
      {
        getGrid().postEvent(new MENetworkPowerStorage(this, MENetworkPowerStorage.PowerEventType.REQUEST_POWER));
      }
    }
    redstonePowered = newRedstone;
  }
View Full Code Here


      return overheadPower;
    }

    if (wasEmpty && energy > 0.001D)
    {
      getGrid().postEvent(new MENetworkPowerStorage(this, MENetworkPowerStorage.PowerEventType.PROVIDE_POWER));
    }

    onUpdatePower();
    return 0.0D;
  }
View Full Code Here

      energy = 0.0D;
    }

    if (energy < maxEnergy && wasFull)
    {
      getGrid().postEvent(new MENetworkPowerStorage(this, MENetworkPowerStorage.PowerEventType.REQUEST_POWER));
    }
    onUpdatePower();
    return amt;
  }
View Full Code Here

TOP

Related Classes of appeng.api.networkevents.MENetworkPowerStorage

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.