Examples of callDamageEvent()


Examples of net.citizensnpcs.resources.npclib.HumanNPC.callDamageEvent()

    @EventHandler(ignoreCancelled = true)
    public void onEntityDamage(EntityDamageEvent event) {
        CreatureTask.onDamage(event.getEntity(), event);
        HumanNPC npc = NPCManager.get(event.getEntity());
        if (npc != null) {
            npc.callDamageEvent(event);
        }
        if (event instanceof EntityDamageByEntityEvent) {
            EntityDamageByEntityEvent e = (EntityDamageByEntityEvent) event;
            if (npc != null) {
                if (e.getDamager() instanceof Player) {
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.