public class HiveDescriptionSwarmer extends java.lang.Object implements IHiveDescription
| Constructor and Description |
|---|
HiveDescriptionSwarmer(net.minecraft.item.ItemStack... bees) |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.block.state.IBlockState |
getBlockState()
The hive block to be placed in the world.
|
float |
getGenChance()
float representing the relative chance a hive will generate in a chunk.
|
IHiveGen |
getHiveGen()
The hive generator for this hive.
|
boolean |
isGoodBiome(net.minecraft.world.biome.Biome biome)
returns true if the hive can be generated in these conditions.
|
boolean |
isGoodHumidity(EnumHumidity humidity) |
boolean |
isGoodTemperature(EnumTemperature temperature) |
void |
postGen(net.minecraft.world.World world,
java.util.Random rand,
net.minecraft.util.math.BlockPos pos)
Called after successful hive generation.
|
public HiveDescriptionSwarmer(net.minecraft.item.ItemStack... bees)
public IHiveGen getHiveGen()
IHiveDescriptiongetHiveGen in interface IHiveDescriptionpublic net.minecraft.block.state.IBlockState getBlockState()
IHiveDescriptiongetBlockState in interface IHiveDescriptionpublic boolean isGoodBiome(net.minecraft.world.biome.Biome biome)
IHiveDescriptionisGoodBiome in interface IHiveDescriptionpublic boolean isGoodHumidity(EnumHumidity humidity)
isGoodHumidity in interface IHiveDescriptionpublic boolean isGoodTemperature(EnumTemperature temperature)
isGoodTemperature in interface IHiveDescriptionpublic float getGenChance()
IHiveDescriptiongetGenChance in interface IHiveDescriptionpublic void postGen(net.minecraft.world.World world,
java.util.Random rand,
net.minecraft.util.math.BlockPos pos)
IHiveDescriptionpostGen in interface IHiveDescription