Class HomingProjectile

java.lang.Object
org.bukkit.scheduler.BukkitRunnable
com.sucy.skill.api.projectile.CustomProjectile
com.sucy.skill.api.projectile.HomingProjectile
All Implemented Interfaces:
Followable, Runnable, org.bukkit.metadata.Metadatable

public class HomingProjectile extends CustomProjectile
ProSkillAPI © 2023 com.sucy.skill.api.projectile.HomingProjectile
  • Constructor Details

  • Method Details

    • getLocation

      public org.bukkit.Location getLocation()
      Description copied from class: CustomProjectile
      Retrieves the location of the projectile
      Specified by:
      getLocation in interface Followable
      Specified by:
      getLocation in class CustomProjectile
      Returns:
      location of the projectile
    • expire

      protected org.bukkit.event.Event expire()
      Description copied from class: CustomProjectile
      Handles expiring due to range or leaving loaded chunks
      Specified by:
      expire in class CustomProjectile
    • land

      protected org.bukkit.event.Event land()
      Description copied from class: CustomProjectile
      Handles landing on terrain
      Specified by:
      land in class CustomProjectile
    • hit

      protected org.bukkit.event.Event hit(org.bukkit.entity.LivingEntity entity)
      Description copied from class: CustomProjectile
      Handles hitting an entity
      Specified by:
      hit in class CustomProjectile
      Parameters:
      entity - entity the projectile hit
    • landed

      protected boolean landed()
      Specified by:
      landed in class CustomProjectile
      Returns:
      true if the projectile has landed on terrain, false otherwise
    • getCollisionRadius

      protected double getCollisionRadius()
      Specified by:
      getCollisionRadius in class CustomProjectile
      Returns:
      squared radius for colliding
    • getVelocity

      protected org.bukkit.util.Vector getVelocity()
      Specified by:
      getVelocity in class CustomProjectile
    • setVelocity

      protected void setVelocity(org.bukkit.util.Vector vel)
      Specified by:
      setVelocity in class CustomProjectile
    • run

      public void run()