Package org.bukkit.entity

Examples of org.bukkit.entity.LivingEntity.addPotionEffect()


        boolean value = false;

        for (Entity entity : area.getEntitiesInArea(types)) {
            if (entity.isValid() && entity instanceof LivingEntity) {
                LivingEntity liv = (LivingEntity) entity;
                liv.addPotionEffect(effect, true);
                value = true;
            }
        }
        return value;
    }
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.