if (texture != null && texture.getResourcePath().endsWith(".png")) {
String key = texture.toString() + ":" + entity.entityId;
ResourceLocation newTexture = (ResourceLocation)cache.get(key);
if (newTexture == null) {
MobRandomizer$ExtraInfo info = MobRandomizer$ExtraInfo.getInfo(entity);
MobRuleList list = MobRuleList.get(texture);
newTexture = list.getSkin(MobRandomizer$ExtraInfo.access$100(info), MobRandomizer$ExtraInfo.access$200(info), MobRandomizer$ExtraInfo.access$300(info), MobRandomizer$ExtraInfo.access$400(info), MobRandomizer$ExtraInfo.access$500(info));
cache.put(key, newTexture);
logger.finer("entity %s using %s (cache: %d)", new Object[] {entity, newTexture, Integer.valueOf(cache.size())});