Package com.prupe.mcpatcher

Examples of com.prupe.mcpatcher.WeightedIndex$2


      for (chooser = 0; chooser < skins.length; skins[chooser] = chooser++) {
        ;
      }
    }

    WeightedIndex var11 = WeightedIndex.create(skins.length, properties.getProperty("weights." + index, ""));

    if (var11 == null) {
      return null;
    } else {
      String biomeList = MCPatcherUtils.getStringProperty(properties, "biomes." + index, "");
View Full Code Here


  private static final long K1 = -5435081209227447693L;
  private static final long KMUL = -7070675565921424023L;
  final int size;

  public static WeightedIndex create(int size) {
    return size <= 0 ? null : new WeightedIndex$1(size);
  }
View Full Code Here

        sum1 += weights[sum];
      }

      if (useWeight && sum1 > 0) {
        return new WeightedIndex$2(size, sum1, weights);
      } else {
        return create(size);
      }
    } else {
      return create(size);
View Full Code Here

  public static Icon getTile(RenderBlocks renderBlocks, Block block, int i, int j, int k, int face, Icon icon, Tessellator tessellator) {
    lastOverride = null;

    if (checkFace(face) && checkBlock(renderBlocks, block)) {
      IBlockAccess blockAccess = renderBlocks.blockAccess;
      CTMUtils$2 iterator = new CTMUtils$2(block, icon, blockAccess, i, j, k, face);
      lastOverride = iterator.go();

      if (lastOverride != null) {
        icon = iterator.getIcon();
      }
    }

    return lastOverride == null && skipDefaultRendering(block) ? null : icon;
  }
View Full Code Here

TOP

Related Classes of com.prupe.mcpatcher.WeightedIndex$2

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.