-
New Feature
-
Resolution: Fixed
-
Minor
-
None
-
None
-
None
-
n/a
-
Yes
I would like to suggest the addition of the Enemy interface.
(org.bukkity.entity.Enemy)
Several mobs such as Slime, Phantom, Dragon, Ghast, etc. do not extend from Monster, but many users tend to consider these entities monsters.
Minecraft (NMS) has an interface Enemy, that is implemented into these entities as well as the general Monster class.
A dev could simply check:
if (entity instanceof Enemy)
This would be substantially easier than checking if instance of Monster, and checking all the other entity types, if wanting for instance, to delete all, kill, or stop spawning of these entities.
I will do a PR shortly.