Class ProjectileUtil
java.lang.Object
de.eldoria.eldoutilities.entities.projectiles.ProjectileUtil
Util to dtermine the sender of a projectile.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProjectileSender
getProjectileSource
(Entity entity) Check if a entity is a projectile.
-
Method Details
-
getProjectileSource
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.
-