Interface IHiveDrop


public interface IHiveDrop
Represents an
  • Method Summary

    Modifier and Type
    Method
    Description
    createIndividual(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos)
     
    double
    getChance(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos, int fortune)
    Chance to drop a bee or extra items.
    List<net.minecraft.world.item.ItemStack>
    getExtraItems(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos, int fortune)
     
    double
    getIgnobleChance(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos, int fortune)
    Chance for the princess to be ignoble.
  • Method Details

    • createIndividual

      IBee createIndividual(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos)
    • getExtraItems

      List<net.minecraft.world.item.ItemStack> getExtraItems(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos, int fortune)
    • getChance

      double getChance(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos, int fortune)
      Chance to drop a bee or extra items. Default drops have 0.80 (= 80 %).
      Parameters:
      level - Minecraft world this is called for.
      pos - Coordinates of the broken hive.
      Returns:
      Chance for drop as a float of 0.0 - 1.0.
    • getIgnobleChance

      double getIgnobleChance(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos, int fortune)
      Chance for the princess to be ignoble. Usually, it's around 0.4 to 0.7 (40% - 70%).
      Parameters:
      level - Minecraft world this is called for.
      pos - Coordinates of the broken hive.
      Returns:
      Chance for ignoble as a float of 0.0 - 1.0.