Class LastEntityDamagerTarget
java.lang.Object
net.minestom.server.entity.ai.TargetSelector
net.minestom.server.entity.ai.target.LastEntityDamagerTarget
public class LastEntityDamagerTarget extends TargetSelector
Targets the last damager of this entity.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description LastEntityDamagerTarget(EntityCreature entityCreature, float range)
-
Method Summary
Modifier and Type Method Description Entity
findTarget()
Finds the target.
-
Constructor Details
-
Method Details
-
findTarget
Description copied from class:TargetSelector
Finds the target.Returning null means that this target selector didn't find any entity, the next
TargetSelector
will be called until the end of the list or an entity is found.- Specified by:
findTarget
in classTargetSelector
- Returns:
- the target, null if not any
-