setTarget

public void setTarget(Entity target)

Set the Entity that you want the mob to target.

It is possible to be null, null will cause the entity to be target-less.

Must be getClassById LivingEntity, or null.

Parameters

target

The entity to target