Examples of AdHocChannelUpdater


Examples of appeng.me.pathfinding.AdHocChannelUpdater

        int nodes = myGrid.getNodes().size();
        ticksUntilReady = 20 + Math.max( 0, nodes / 100 - 20 );
        channelsByBlocks = nodes * used;
        channelPowerUsage = channelsByBlocks / 128.0;

        myGrid.getPivot().beginVisit( new AdHocChannelUpdater( used ) );
      }
      else if ( controllerState == ControllerState.NO_CONTROLLER )
      {
        int requiredChannels = calculateRequiredChannels();
        int used = requiredChannels;
        if ( requiredChannels > 8 )
          used = 0;

        int nodes = myGrid.getNodes().size();
        channelsInUse = used;

        ticksUntilReady = 20 + Math.max( 0, nodes / 100 - 20 );
        channelsByBlocks = nodes * used;
        channelPowerUsage = channelsByBlocks / 128.0;

        myGrid.getPivot().beginVisit( new AdHocChannelUpdater( used ) );
      }
      else if ( controllerState == ControllerState.CONTROLLER_CONFLICT )
      {
        ticksUntilReady = 20;
        myGrid.getPivot().beginVisit( new AdHocChannelUpdater( 0 ) );
      }
      else
      {
        int nodes = myGrid.getNodes().size();
        ticksUntilReady = 20 + Math.max( 0, nodes / 100 - 20 );
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.