diff --git a/paper-api/src/main/java/org/bukkit/entity/Ocelot.java b/paper-api/src/main/java/org/bukkit/entity/Ocelot.java index 54bde9c8a3..a4df056b04 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Ocelot.java +++ b/paper-api/src/main/java/org/bukkit/entity/Ocelot.java @@ -31,6 +31,12 @@ public interface Ocelot extends Animals, Tameable { private static final Type[] types = new Type[Type.values().length]; private final int id; + static { + for (Type type : values()) { + types[type.getId()] = type; + } + } + private Type(int id) { this.id = id; }