Examples of ProjectileSource


Examples of org.bukkit.projectiles.ProjectileSource

                // If the damager was a projectile, take its shooter into
                // account as well
            else if (killerEntity instanceof Projectile)
            {
                ProjectileSource shooter = ((Projectile) killerEntity).getShooter();
                if (shooter != null && shooter instanceof LivingEntity) {

                    context.put("shooter", new dEntity((LivingEntity) shooter));
                    if (shooter instanceof Player)
                        player = dPlayer.mirrorBukkitPlayer((Player) shooter);
View Full Code Here

Examples of org.bukkit.projectiles.ProjectileSource

        if (Misc.isNPCEntity(attacker)) {
            return;
        }

        if (attacker instanceof Projectile) {
            ProjectileSource projectileSource = ((Projectile) attacker).getShooter();

            if (projectileSource instanceof LivingEntity) {
                attacker = (LivingEntity) projectileSource;
            }
        }
View Full Code Here

Examples of org.bukkit.projectiles.ProjectileSource

                }
            }
        }
        else if (entityType == EntityType.ARROW) {
            Arrow arrow = (Arrow) damager;
            ProjectileSource projectileSource = arrow.getShooter();

            if (projectileSource != null && projectileSource instanceof Player && SkillType.ARCHERY.shouldProcess(target)) {
                Player player = (Player) projectileSource;

                if (!Misc.isNPCEntity(player) && SkillType.ARCHERY.getPermissions(player)) {
View Full Code Here

Examples of org.bukkit.projectiles.ProjectileSource

            case MAGIC:
                Entity damager = event.getDamager();
                if (damager instanceof Projectile)
                {
                    ((Projectile) damager).getShooter();
                    ProjectileSource source = ((Projectile) damager).getShooter();
                    if (source instanceof Player)
                        offender = (Player) source;
                }
                break;
            default:
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.