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
@@ -20,7 +20,7 @@ public class JebSheep implements EntiddyInterface {
}
@Override
public boolean isInstance(LivingEntity entity) {
public boolean isInstance(@NotNull LivingEntity entity) {
if (!(entity instanceof Rabbit)) return false;
return entity.getCustomName() != null && entity.getCustomName().equals("jeb_");
}