Clean up hive drops API

This commit is contained in:
mezz committed 2016-03-04 03:09:57 -08:00
1 parent 2d4c180389
commit 6e3c28e07e
6 files changed
+82 -64

No files matched your search

@@ -9,7 +9,7 @@ import java.util.Collection;
import net.minecraft.item.ItemStack;
import net.minecraft.util.BlockPos;
import net.minecraft.world.World;
import net.minecraft.world.IBlockAccess;
/**
* Bees can be seeded either as hive drops or as mutation results.
@@ -20,18 +20,25 @@ import net.minecraft.world.World;
*/
public interface IHiveDrop {
ItemStack getPrincess(World world, BlockPos pos, int fortune);
IBee getBeeType(IBlockAccess world, BlockPos pos);
Collection<ItemStack> getDrones(World world, BlockPos pos, int fortune);
Collection<ItemStack> getAdditional(World world, BlockPos pos, int fortune);
Collection<ItemStack> getExtraItems(IBlockAccess world, BlockPos pos, int fortune);
/**
* Chance to drop. Default drops have 80 (= 80 %).
* Chance to drop a bee or extra items. Default drops have 0.80 (= 80 %).
*
* @param world Minecraft world this is called for.
* @param pos Coordinates of the broken hive.
* @return Chance for drop as an integer of 0 - 100.
* @return Chance for drop as a float of 0.0 - 1.0.
*/
int getChance(World world, BlockPos pos);
double getChance(IBlockAccess world, BlockPos pos, int fortune);
/**
* Chance for the princess to be ignoble. Default is around 0.4 to 0.7 (40% - 70%).
*
* @param world Minecraft world this is called for.
* @param pos Coordinates of the broken hive.
* @return Chance for ignoble as a float of 0.0 - 1.0.
*/
double getIgnobleChance(IBlockAccess world, BlockPos pos, int fortune);
}