Package forestry.api.apiculture.hives
Interface IHive
public interface IHive
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanReplace(net.minecraft.world.level.WorldGenLevel world, net.minecraft.core.BlockPos pos) floatgetDrops()net.minecraft.world.level.block.state.BlockStatenet.minecraft.core.BlockPosgetPosForHive(net.minecraft.world.level.WorldGenLevel level, int posX, int posZ) booleanisGoodBiome(net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> biome) booleanisGoodHumidity(HumidityType humidity) booleanisGoodTemperature(TemperatureType temperature) booleanisValidLocation(net.minecraft.world.level.WorldGenLevel world, net.minecraft.core.BlockPos pos) voidpostGen(net.minecraft.world.level.WorldGenLevel world, net.minecraft.util.RandomSource rand, net.minecraft.core.BlockPos pos) toString()
-
Method Details
-
getDefinition
IHiveDefinition getDefinition() -
getHiveBlockState
net.minecraft.world.level.block.state.BlockState getHiveBlockState() -
getDrops
-
genChance
float genChance() -
postGen
void postGen(net.minecraft.world.level.WorldGenLevel world, net.minecraft.util.RandomSource rand, net.minecraft.core.BlockPos pos) -
isGoodBiome
boolean isGoodBiome(net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> biome) -
isGoodHumidity
-
isGoodTemperature
-
isValidLocation
boolean isValidLocation(net.minecraft.world.level.WorldGenLevel world, net.minecraft.core.BlockPos pos) -
canReplace
boolean canReplace(net.minecraft.world.level.WorldGenLevel world, net.minecraft.core.BlockPos pos) -
getPosForHive
@Nullable net.minecraft.core.BlockPos getPosForHive(net.minecraft.world.level.WorldGenLevel level, int posX, int posZ) - Parameters:
level- The level to generate the hive in.posX- The X coordinate of the position where the hive should be generated.posZ- The Z coordinate of the position where the hive should be generated.- Returns:
- The adjusted position, including X, Y, and Z coordinates, where the hive should be generated,
or
nullif no hive should be generated at the given X and Z coordinates.
-
toString
String toString()
-