Class ProjectileUtil

java.lang.Object
de.eldoria.eldoutilities.entities.projectiles.ProjectileUtil

public final class ProjectileUtil extends Object
Util to dtermine the sender of a projectile.
Since:
1.0.0
  • Method Details

    • getProjectileSource

      public static ProjectileSender getProjectileSource(Entity entity)
      Check if a entity is a projectile. If the entity is a projectile try to find the projectile sender.
      Parameters:
      entity - entity
      Returns:
      A ProjectileSender which is empty if the entity is not a projectile or will hold a block or entity.