mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-27 11:38:03 +01:00
Allow null target in EntityCreature#setTarget
This commit is contained in:
parent
edab21baa6
commit
f13646fd0d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user