Package vazkii.botania.api.internal

Examples of vazkii.botania.api.internal.IManaNetwork


        needsNew = true;
      } else linkedCollector = tileAt;
    }

    if(needsNew) {
      IManaNetwork network = BotaniaAPI.internalHandler.getManaNetworkInstance();
      int size = network.getAllCollectorsInWorld(supertile.getWorldObj()).size();
      if(BotaniaAPI.internalHandler.shouldForceCheck() || size != sizeLastCheck) {
        ChunkCoordinates coords = new ChunkCoordinates(supertile.xCoord, supertile.yCoord, supertile.zCoord);
        linkedCollector = network.getClosestCollector(coords, supertile.getWorldObj(), range);
        sizeLastCheck = size;
      }
    }
  }
View Full Code Here


        needsNew = true;
      } else linkedPool = tileAt;
    }

    if(needsNew) {
      IManaNetwork network = BotaniaAPI.internalHandler.getManaNetworkInstance();
      int size = network.getAllPoolsInWorld(supertile.getWorldObj()).size();
      if(BotaniaAPI.internalHandler.shouldForceCheck() || size != sizeLastCheck) {
        ChunkCoordinates coords = new ChunkCoordinates(supertile.xCoord, supertile.yCoord, supertile.zCoord);
        linkedPool = network.getClosestPool(coords, supertile.getWorldObj(), range);
        sizeLastCheck = size;
      }
    }
  }
View Full Code Here

TOP

Related Classes of vazkii.botania.api.internal.IManaNetwork

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.