Search in sources :

Example 1 with HiveDrop

use of forestry.apiculture.genetics.HiveDrop in project ForestryMC by ForestryMC.

the class ModuleApiculture method registerBeehiveDrops.

private static void registerBeehiveDrops() {
    ItemRegistryApiculture items = getItems();
    ItemStack honeyComb = items.beeComb.get(EnumHoneyComb.HONEY, 1);
    HiveRegistry hiveRegistry = getHiveRegistry();
    hiveRegistry.addDrops(HiveType.FOREST.getHiveUid(), new HiveDrop(0.80, BeeDefinition.FOREST, honeyComb).setIgnobleShare(0.7), new HiveDrop(0.08, BeeDefinition.FOREST.getRainResist(), honeyComb), new HiveDrop(0.03, BeeDefinition.VALIANT, honeyComb));
    hiveRegistry.addDrops(HiveType.MEADOWS.getHiveUid(), new HiveDrop(0.80, BeeDefinition.MEADOWS, honeyComb).setIgnobleShare(0.7), new HiveDrop(0.03, BeeDefinition.VALIANT, honeyComb));
    ItemStack parchedComb = items.beeComb.get(EnumHoneyComb.PARCHED, 1);
    hiveRegistry.addDrops(HiveType.DESERT.getHiveUid(), new HiveDrop(0.80, BeeDefinition.MODEST, parchedComb).setIgnobleShare(0.7), new HiveDrop(0.03, BeeDefinition.VALIANT, parchedComb));
    ItemStack silkyComb = items.beeComb.get(EnumHoneyComb.SILKY, 1);
    hiveRegistry.addDrops(HiveType.JUNGLE.getHiveUid(), new HiveDrop(0.80, BeeDefinition.TROPICAL, silkyComb).setIgnobleShare(0.7), new HiveDrop(0.03, BeeDefinition.VALIANT, silkyComb));
    ItemStack mysteriousComb = items.beeComb.get(EnumHoneyComb.MYSTERIOUS, 1);
    hiveRegistry.addDrops(HiveType.END.getHiveUid(), new HiveDrop(0.90, BeeDefinition.ENDED, mysteriousComb));
    ItemStack frozenComb = items.beeComb.get(EnumHoneyComb.FROZEN, 1);
    hiveRegistry.addDrops(HiveType.SNOW.getHiveUid(), new HiveDrop(0.80, BeeDefinition.WINTRY, frozenComb).setIgnobleShare(0.5), new HiveDrop(0.03, BeeDefinition.VALIANT, frozenComb));
    ItemStack mossyComb = items.beeComb.get(EnumHoneyComb.MOSSY, 1);
    hiveRegistry.addDrops(HiveType.SWAMP.getHiveUid(), new HiveDrop(0.80, BeeDefinition.MARSHY, mossyComb).setIgnobleShare(0.4), new HiveDrop(0.03, BeeDefinition.VALIANT, mossyComb));
}
Also used : HiveDrop(forestry.apiculture.genetics.HiveDrop) ItemRegistryApiculture(forestry.apiculture.items.ItemRegistryApiculture) HiveRegistry(forestry.apiculture.worldgen.HiveRegistry) ItemStack(net.minecraft.item.ItemStack)

Aggregations

HiveDrop (forestry.apiculture.genetics.HiveDrop)1 ItemRegistryApiculture (forestry.apiculture.items.ItemRegistryApiculture)1 HiveRegistry (forestry.apiculture.worldgen.HiveRegistry)1 ItemStack (net.minecraft.item.ItemStack)1