Examples of WeightedIndex


Examples of com.pclewis.mcpatcher.WeightedIndex

                for (int i = 0; i < skins.length; i++) {
                    skins[i]--;
                }
            }

            WeightedIndex chooser = WeightedIndex.create(skins.length, properties.getProperty("weights." + index, ""));
            if (chooser == null) {
                return null;
            }

            HashSet<String> biomes = new HashSet<String>();
View Full Code Here

Examples of com.prupe.mcpatcher.WeightedIndex

      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

Examples of com.prupe.mcpatcher.WeightedIndex$1

  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

Examples of com.prupe.mcpatcher.WeightedIndex$2

        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
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.