1 package com.irtimaled.bbor.common;
3 import com.irtimaled.bbor.common.models.Coords;
7 public class VillageHelper {
8 public static boolean shouldSpawnIronGolems(int population, int doorCount) {
9 return population >= 10 && doorCount >= 21;
12 public static int computeHash(Coords center, Integer radius, boolean spawnsIronGolems, Set<Coords> doors) {
13 int result = (center.hashCode() * 31) + radius;
14 for (Coords door : doors) {
15 result = (31 * result) + door.hashCode();
17 if (spawnsIronGolems) {