Esempio n. 1
0
 public static <T> T getFlagValueAtLocation(FlagType<T> flagType, int dim, int x, int y, int z) {
   if (MyTownUniverse.instance.blocks.contains(dim, x >> 4, z >> 4)) {
     Town town = MyTownUniverse.instance.blocks.get(dim, x >> 4, z >> 4).getTown();
     return town.getValueAtCoords(dim, x, y, z, flagType);
   } else {
     return flagType.isWildPerm ? Wild.instance.flagsContainer.get(flagType).value : null;
   }
 }