From f13646fd0d4b4fe6136bc2891d82817c44618344 Mon Sep 17 00:00:00 2001 From: themode Date: Sun, 3 Jan 2021 22:42:15 +0100 Subject: [PATCH] Allow null target in EntityCreature#setTarget --- src/main/java/net/minestom/server/entity/EntityCreature.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/minestom/server/entity/EntityCreature.java b/src/main/java/net/minestom/server/entity/EntityCreature.java index e765a748b..715cf6d87 100644 --- a/src/main/java/net/minestom/server/entity/EntityCreature.java +++ b/src/main/java/net/minestom/server/entity/EntityCreature.java @@ -224,7 +224,7 @@ public abstract class EntityCreature extends LivingEntity implements NavigableEn /** * Gets the entity target. * - * @return the entity target + * @return the entity target, can be null if not any */ @Nullable public Entity getTarget() { @@ -234,7 +234,7 @@ public abstract class EntityCreature extends LivingEntity implements NavigableEn /** * Changes the entity target. * - * @param target the new entity target + * @param target the new entity target, null to remove */ public void setTarget(@Nullable Entity target) { this.target = target;