Package buildcraft.core

Examples of buildcraft.core.DefaultAreaProvider


    if (!useDefault) {
      a = Utils.getNearbyAreaProvider(worldObj, xCoord, yCoord, zCoord);
    }

    if (a == null) {
      a = new DefaultAreaProvider(xCoord, yCoord, zCoord, xCoord + 10, yCoord + 4, zCoord + 10);

      useDefault = true;
    }

    int xSize = a.xMax() - a.xMin() + 1;
    int zSize = a.zMax() - a.zMin() + 1;

    if (xSize < 3 || zSize < 3 || ((xSize * zSize) >> 8) >= chunkTicket.getMaxChunkListDepth()) {
      if (placedBy != null) {
        placedBy.addChatMessage(new ChatComponentText(
            String.format(
                "Quarry size is outside of chunkloading bounds or too small %d %d (%d)",
                xSize, zSize,
                chunkTicket.getMaxChunkListDepth())));
      }

      a = new DefaultAreaProvider(xCoord, yCoord, zCoord, xCoord + 10, yCoord + 4, zCoord + 10);
      useDefault = true;
    }

    xSize = a.xMax() - a.xMin() + 1;
    int ySize = a.yMax() - a.yMin() + 1;
View Full Code Here

TOP

Related Classes of buildcraft.core.DefaultAreaProvider

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.