diff --git a/pom.xml b/pom.xml
index 1ad2957..286941a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
me.youhavetrouble
Entiddy
- 1.1.0
+ 1.2.0
jar
Entiddy
diff --git a/src/main/java/me/youhavetrouble/entiddy/Entiddy.java b/src/main/java/me/youhavetrouble/entiddy/Entiddy.java
index 694d658..0bb7ce0 100644
--- a/src/main/java/me/youhavetrouble/entiddy/Entiddy.java
+++ b/src/main/java/me/youhavetrouble/entiddy/Entiddy.java
@@ -12,9 +12,27 @@ import org.jetbrains.annotations.NotNull;
public enum Entiddy {
+ /**
+ * Killer bunny that attacks players monthy python style
+ */
KILLER_BUNNY(EntityType.RABBIT, new KillerBunny()),
+
+ /**
+ * Its wool cycles with interpolation through all dye colors
+ * Sheep with rgb lighting
+ */
JEB_SHEEP(EntityType.SHEEP, new JebSheep()),
+
+ /**
+ * Johnny is hostile to basically every mob with few exceptions
+ * HERE'S JOHNNY
+ */
JOHNNY(EntityType.VINDICATOR, new Johnny()),
+
+ /**
+ * Toast has the appearance of a black dutch, with a large black and white patch and more black fur around the face
+ * than the natural black and white spotted rabbit.
+ */
TOAST(EntityType.RABBIT, new Toast());
private final EntityType entityType;
@@ -47,10 +65,21 @@ public enum Entiddy {
*/
public static boolean isSpecialEntity(@NotNull LivingEntity entity) {
if (entity instanceof Player) return false;
- for (Entiddy enTiddy: Entiddy.values()) {
- if (enTiddy.entiddy().isInstance(entity)) return true;
+ for (Entiddy entiddy: Entiddy.values()) {
+ if (entiddy.entiddy().isInstance(entity)) return true;
}
return false;
}
+ /**
+ * @return Special entity type or null
+ */
+ public static Entiddy fromEntity(@NotNull LivingEntity entity) {
+ if (entity instanceof Player) return null;
+ for (Entiddy entiddy: Entiddy.values()) {
+ if (entiddy.entiddy().isInstance(entity)) return entiddy;
+ }
+ return null;
+ }
+
}