Package forestry.api.apiculture.hives
Interface IHiveManager
public interface IHiveManager
-
Method Summary
Modifier and TypeMethodDescriptioncreateBeeHousingListener(IBeeHousing housing) Combines multiple listeners from an IBeeHousing into one.createBeeHousingModifier(IBeeHousing housing) Combines multiple modifiers from an IBeeHousing into one.createBeekeepingLogic(IBeeHousing housing) Creates beekeepingLogic for a housing.com.google.common.collect.ImmutableList<forestry.apiculture.VillageHive>getDrops(net.minecraft.resources.ResourceLocation id) getHives()com.google.common.collect.ImmutableList<forestry.apiculture.VillageHive>floatgetSwarmingMaterialChance(net.minecraft.world.item.Item swarmItem) Used to determine if an item is usable as fuel in an Alveary Swarmer for queen rearing.
-
Method Details
-
getHives
- Returns:
- List of all registered hives.
-
getCommonVillageHives
com.google.common.collect.ImmutableList<forestry.apiculture.VillageHive> getCommonVillageHives()- Returns:
- List of common hives used when picking hives for Forestry village houses.
-
getRareVillageHives
com.google.common.collect.ImmutableList<forestry.apiculture.VillageHive> getRareVillageHives()- Returns:
- List of rare hives used when picking hives for Forestry village houses.
-
getDrops
- Returns:
- A list of potential drops for the hive with the specified ID.
-
getSwarmingMaterialChance
float getSwarmingMaterialChance(net.minecraft.world.item.Item swarmItem) Used to determine if an item is usable as fuel in an Alveary Swarmer for queen rearing. In default Forestry, only Royal Jelly is usable and returns0.01f, or 1%.- Returns:
- The chance
-
createBeekeepingLogic
Creates beekeepingLogic for a housing. Should be used when the housing is created, see IBeekeepingLogic -
createBeeHousingModifier
Combines multiple modifiers from an IBeeHousing into one. Stays up to date with changes to the housing's modifiers. -
createBeeHousingListener
Combines multiple listeners from an IBeeHousing into one. Stays up to date with changes to the housing's listeners.
-