Examples of addDrop()


Examples of com.warrows.plugins.TreeSpirit.trees.GreatTree.addDrop()

      return;
    }

    GreatTree tree = TreesData.getGreatTree(player);

    tree.addDrop(item);
  }

  @EventHandler(ignoreCancelled = true)
  public void onPlayerBlockPlace(BlockPlaceEvent event)
  {
View Full Code Here

Examples of com.warrows.plugins.TreeSpirit.trees.GreatTree.addDrop()

        if (is != null)
        {
          if (is.getType() == Material.LOG
              || is.getType() == Material.SAPLING
              || is.getType() == Material.LEAVES)
            tree.addDrop(is);
        }
      }
    }
  }
View Full Code Here

Examples of forestry.api.apiculture.hives.IHive.addDrop()

  @Deprecated // deprecated since 3.1. remove when BeeManager.hiveDrops is removed
  private void updateHiveDrops() {
    IHive hive = HiveManager.getForestHive();
    for (IHiveDrop drop : forestDrops)
      hive.addDrop(drop);

    hive = HiveManager.getMeadowsHive();
    for (IHiveDrop drop : meadowsDrops)
      hive.addDrop(drop);
View Full Code Here

Examples of forestry.api.apiculture.hives.IHive.addDrop()

    for (IHiveDrop drop : forestDrops)
      hive.addDrop(drop);

    hive = HiveManager.getMeadowsHive();
    for (IHiveDrop drop : meadowsDrops)
      hive.addDrop(drop);

    hive = HiveManager.getDesertHive();
    for (IHiveDrop drop : desertDrops)
      hive.addDrop(drop);
View Full Code Here

Examples of forestry.api.apiculture.hives.IHive.addDrop()

    for (IHiveDrop drop : meadowsDrops)
      hive.addDrop(drop);

    hive = HiveManager.getDesertHive();
    for (IHiveDrop drop : desertDrops)
      hive.addDrop(drop);

    hive = HiveManager.getJungleHive();
    for (IHiveDrop drop : jungleDrops)
      hive.addDrop(drop);
View Full Code Here

Examples of forestry.api.apiculture.hives.IHive.addDrop()

    for (IHiveDrop drop : desertDrops)
      hive.addDrop(drop);

    hive = HiveManager.getJungleHive();
    for (IHiveDrop drop : jungleDrops)
      hive.addDrop(drop);

    hive = HiveManager.getEndHive();
    for (IHiveDrop drop : endDrops)
      hive.addDrop(drop);
View Full Code Here

Examples of forestry.api.apiculture.hives.IHive.addDrop()

    for (IHiveDrop drop : jungleDrops)
      hive.addDrop(drop);

    hive = HiveManager.getEndHive();
    for (IHiveDrop drop : endDrops)
      hive.addDrop(drop);

    hive = HiveManager.getSnowHive();
    for (IHiveDrop drop : snowDrops)
      hive.addDrop(drop);
View Full Code Here

Examples of forestry.api.apiculture.hives.IHive.addDrop()

    for (IHiveDrop drop : endDrops)
      hive.addDrop(drop);

    hive = HiveManager.getSnowHive();
    for (IHiveDrop drop : snowDrops)
      hive.addDrop(drop);

    hive = HiveManager.getSwampHive();
    for (IHiveDrop drop : swampDrops)
      hive.addDrop(drop);
  }
View Full Code Here

Examples of forestry.api.apiculture.hives.IHive.addDrop()

    for (IHiveDrop drop : snowDrops)
      hive.addDrop(drop);

    hive = HiveManager.getSwampHive();
    for (IHiveDrop drop : swampDrops)
      hive.addDrop(drop);
  }

  private void createAlleles() {

    IClassification hymnoptera = AlleleManager.alleleRegistry.createAndRegisterClassification(EnumClassLevel.ORDER, "hymnoptera", "Hymnoptera");
View Full Code Here

Examples of org.spout.vanilla.component.entity.misc.DeathDrops.addDrop()

    super.onAttached();
    Float nextEgg = (float) (GenericMath.getRandom().nextInt(MINIMUM_EGG_BREEDING_TIME) + MINIMUM_EGG_BREEDING_TIME);
    getOwner().getData().put(VanillaData.TIME_TILL_EGG, nextEgg);
    setEntityProtocol(new CreatureProtocol(CreatureType.CHICKEN));
    DeathDrops dropComponent = getOwner().add(DeathDrops.class);
    dropComponent.addDrop(new ItemStack(VanillaMaterials.FEATHER, getRandom().nextInt(2)));
    dropComponent.addDrop(new ItemStack(VanillaMaterials.RAW_CHICKEN, 1));
    dropComponent.addXpDrop((short) (getRandom().nextInt(3) + 1));

    if (getAttachedCount() == 1) {
      getOwner().add(Health.class).setSpawnHealth(4);
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.