Examples of LightningStrikeEvent


Examples of keepcalm.mods.events.events.LightningStrikeEvent

    return pack;
  }
 
  public static boolean onLightningStrike(EntityLightningBolt entity, World world, int x, int y, int z) {
   
    LightningStrikeEvent ev = new LightningStrikeEvent(entity, world, x, y, z);
    MinecraftForge.EVENT_BUS.post(ev);
   
    return ev.isCanceled();
  }
View Full Code Here

Examples of org.bukkit.event.weather.LightningStrikeEvent

        return (LivingEntity) spawn(loc, type.getEntityClass());
    }

    private GlowLightningStrike strikeLightningFireEvent(final Location loc, final boolean effect) {
        final GlowLightningStrike strike = new GlowLightningStrike(loc, effect, random);
        final LightningStrikeEvent event = new LightningStrikeEvent(this, strike);
        if (EventFactory.callEvent(event).isCancelled()) {
            return null;
        }
        return strike;
    }
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.