Class FollowTarget

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

public class FollowTarget extends Object implements EffectTarget
Tracks a followable target to play an effect around
  • Constructor Details

    • FollowTarget

      public FollowTarget(Followable target)
      Parameters:
      target - object 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
    • 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