Package us.deathmarine.diablodrops.events

Examples of us.deathmarine.diablodrops.events.EntitySpawnEvent


      return;
    if (plugin.getConfig().getBoolean("Reason.Egg", true)
        && (event.getSpawnReason().equals(SpawnReason.EGG) || event
            .getSpawnReason().equals(SpawnReason.SPAWNER_EGG)))
      return;
    EntitySpawnEvent ese = new EntitySpawnEvent(entity, plugin
        .getSingleRandom().nextInt(100) + 1);
    plugin.getServer().getPluginManager().callEvent(ese);
    if ((entity instanceof Monster)
        && (plugin.getConfig().getInt("Percentages.ChancePerSpawn", 3) >= ese
            .getChance())) {
      List<ItemStack> items = new ArrayList<ItemStack>();
      for (int i = 0; i < (plugin.getSingleRandom().nextInt(5) + 1); i++) {
        ItemStack ci = plugin.getDropAPI().getItem();
        while (ci == null) {
View Full Code Here

TOP

Related Classes of us.deathmarine.diablodrops.events.EntitySpawnEvent

Copyright © 2018 www.massapicom. 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.