Allow null target in EntityCreature#setTarget

This commit is contained in:
themode 2021-01-03 22:42:15 +01:00
parent edab21baa6
commit f13646fd0d

View File

@ -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;