Add ocelot type enum

This commit is contained in:
libraryaddict 2020-10-21 11:33:18 +13:00
parent c0ff4960aa
commit ac35cb64b6

View File

@ -95,6 +95,8 @@ public class ParamInfoTypes {
paramInfos.add(new ParamInfoEnum(Panda.Gene.class, "Panda Gene", "The panda gene type"));
paramInfos.add(new ParamInfoEnum(MushroomCow.Variant.class, "Mushroom Cow Variant",
"The different variants for mushroom cows"));
} else {
paramInfos.add(new ParamInfoEnum(Ocelot.Type.class, "Ocelot Type", "The type of ocelot"));
}
paramInfos.add(new ParamInfoEnum(DisguiseConfig.NotifyBar.class, "NotifyBar",
@ -156,8 +158,7 @@ public class ParamInfoTypes {
}
return map;
}
catch (ClassNotFoundException | IllegalAccessException e) {
} catch (ClassNotFoundException | IllegalAccessException e) {
e.printStackTrace();
}
@ -181,8 +182,7 @@ public class ParamInfoTypes {
}
list.add(material);
}
catch (NoSuchFieldException e) {
} catch (NoSuchFieldException e) {
e.printStackTrace();
}
}
@ -194,8 +194,9 @@ public class ParamInfoTypes {
Map<String, Object> map = new HashMap<>();
for (PotionEffectType effectType : PotionEffectType.values()) {
if (effectType == null)
if (effectType == null) {
continue;
}
map.put(toReadable(effectType.getName()), effectType);
}