public enum HiveDescription extends java.lang.Enum<HiveDescription> implements IHiveDescription
| Enum Constant and Description |
|---|
DESERT |
END |
FOREST |
JUNGLE |
MEADOWS |
SNOW |
SWAMP |
| 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.
|
protected static void |
postGenFlowers(net.minecraft.world.World world,
java.util.Random rand,
net.minecraft.util.math.BlockPos hivePos,
java.util.List<net.minecraft.block.state.IBlockState> flowerStates) |
static HiveDescription |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HiveDescription[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HiveDescription FOREST
public static final HiveDescription MEADOWS
public static final HiveDescription DESERT
public static final HiveDescription JUNGLE
public static final HiveDescription END
public static final HiveDescription SNOW
public static final HiveDescription SWAMP
public static HiveDescription[] values()
for (HiveDescription c : HiveDescription.values()) System.out.println(c);
public static HiveDescription valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic 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 IHiveDescriptionprotected static void postGenFlowers(net.minecraft.world.World world,
java.util.Random rand,
net.minecraft.util.math.BlockPos hivePos,
java.util.List<net.minecraft.block.state.IBlockState> flowerStates)