notnull and javadocs

This commit is contained in:
2022-05-12 19:03:02 +02:00
parent 48b44c7173
commit 7452dca5e3
6 changed files with 11 additions and 5 deletions
@@ -40,6 +40,9 @@ public enum Entiddy {
entity.setCustomName("Grumm");
}
/**
* @return True if entity is one of special/easter egg entities
*/
public static boolean isSpecialEntity(@NotNull LivingEntity entity) {
if (entity instanceof Player) return false;
for (Entiddy enTiddy: Entiddy.values()) {