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

    Fields inherited from class net.minestom.server.entity.ai.TargetSelector

    entityCreature
  • Constructor Summary

    Constructors 
    Constructor Description
    LastEntityDamagerTarget​(EntityCreature entityCreature, float range)  
  • Method Summary

    Modifier and Type Method Description
    Entity findTarget()
    Finds the target.

    Methods inherited from class net.minestom.server.entity.ai.TargetSelector

    getEntityCreature

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait