Class EntityTarget

java.lang.Object
studio.magemonkey.fabled.api.particle.target.EntityTarget
All Implemented Interfaces:
EffectTarget

public class EntityTarget extends Object implements EffectTarget
Causes an effect to follow the target entity
  • Constructor Details

    • EntityTarget

      public EntityTarget(org.bukkit.entity.Entity target)
      Parameters:
      target - entity to follow
  • Method Details

    • getLocation

      public org.bukkit.Location getLocation()
      Gets the location to center the effect around
      Specified by:
      getLocation in interface EffectTarget
      Returns:
      effect location
    • getEntity

      public org.bukkit.entity.Entity getEntity()
    • isValid

      public boolean isValid()
      Specified by:
      isValid in interface EffectTarget
      Returns:
      tue if target is still valid, false otherwise
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object