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
@@ -23,7 +23,7 @@ public class KillerBunny implements EntiddyInterface {
}
@Override
public boolean isInstance(LivingEntity entity) {
public boolean isInstance(@NotNull LivingEntity entity) {
if (!(entity instanceof Rabbit)) return false;
return ((Rabbit) entity).getRabbitType().equals(Rabbit.Type.THE_KILLER_BUNNY);
}