Narrowed down the return type of most EntityEvent subclasses for convenience. Addresses BUKKIT-809
This commit is contained in:
@@ -24,6 +24,11 @@ public class EntityShootBowEvent extends EntityEvent implements Cancellable {
|
||||
this.force = force;
|
||||
}
|
||||
|
||||
@Override
|
||||
public LivingEntity getEntity() {
|
||||
return (LivingEntity) entity;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the bow ItemStack used to fire the arrow; is null if the shooter is a skeleton
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user