static Method getBiomeIDAt;
private MobRuleList(ResourceLocation baseSkin) {
this.baseSkin = baseSkin;
String newPath = baseSkin.getResourcePath().replaceFirst("^textures/entity/", "mcpatcher/mob/");
ResourceLocation newSkin = new ResourceLocation(baseSkin.getResourceDomain(), newPath);
this.allSkins = new ArrayList();
this.allSkins.add(baseSkin);
int filename = 2;
while (true) {
ResourceLocation altFilename = TexturePackAPI.transformResourceLocation(newSkin, ".png", filename + ".png");
if (!TexturePackAPI.hasResource(altFilename)) {
this.skinCount = this.allSkins.size();
if (this.skinCount <= 1) {
this.entries = null;
return;
} else {
logger.fine("found %d variations for %s", new Object[] {Integer.valueOf(this.skinCount), baseSkin});
ResourceLocation var10 = TexturePackAPI.transformResourceLocation(newSkin, ".png", ".properties");
altFilename = new ResourceLocation(newSkin.getResourceDomain(), var10.getResourcePath().replaceFirst("_(eyes|overlay|tame|angry|collar|fur|invulnerable|shooting)\\.properties$", ".properties"));
Properties properties = TexturePackAPI.getProperties(var10);
if (properties == null && !var10.equals(altFilename)) {
properties = TexturePackAPI.getProperties(altFilename);
if (properties != null) {
logger.fine("using %s for %s", new Object[] {altFilename, baseSkin});
}