public interface IFlowerRegistry
| Modifier and Type | Method and Description |
|---|---|
IBlockPosPredicate |
createAcceptedFlowerPredicate(java.lang.String flowerType)
Checks a single coordinate to see if it is an accepted flower.
|
java.util.List<net.minecraft.util.math.BlockPos> |
getAcceptedFlowerCoordinates(IBeeHousing beeHousing,
IBee bee,
java.lang.String flowerType,
int maxFlowers)
Deprecated.
since Forestry 5.5.2. Use
getAreaIterator(IBeeHousing, IBee) and createAcceptedFlowerPredicate(String). |
java.util.Iterator<net.minecraft.util.math.BlockPos.MutableBlockPos> |
getAreaIterator(IBeeHousing beeHousing,
IBee bee)
Gets an iterator over the area a bee can travel from its beeHousing.
|
boolean |
growFlower(java.lang.String flowerType,
net.minecraft.world.World world,
IIndividual individual,
net.minecraft.util.math.BlockPos pos)
Deprecated.
since Forestry 5.5.4. Use
growFlower(String, World, IIndividual, BlockPos, Collection) |
boolean |
growFlower(java.lang.String flowerType,
net.minecraft.world.World world,
IIndividual individual,
net.minecraft.util.math.BlockPos pos,
java.util.Collection<net.minecraft.block.state.IBlockState> potentialFlowers)
Calls the appropriate IFlowerGrowthRule to grow a flower at a specified position.
|
boolean |
isAcceptedFlower(java.lang.String flowerType,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
Deprecated.
since Forestry 5.5.2. Use
createAcceptedFlowerPredicate(String). |
void |
registerAcceptableFlower(net.minecraft.block.Block block,
java.lang.String... flowerTypes)
Registers an accepted flower with any state.
|
void |
registerAcceptableFlower(net.minecraft.block.state.IBlockState blockState,
java.lang.String... flowerTypes)
Registers an accepted flower with a particular state.
|
void |
registerAcceptableFlowerRule(IFlowerAcceptableRule flowerAcceptableRule,
java.lang.String... flowerTypes)
Registers custom logic for accepted flowers.
|
void |
registerGrowthRule(IFlowerGrowthRule rule,
java.lang.String... flowerTypes)
Register a new flower growth rule.
|
void |
registerPlantableFlower(net.minecraft.block.state.IBlockState blockState,
double weight,
java.lang.String... flowerTypes)
Registers a plantable flower.
|
void registerGrowthRule(IFlowerGrowthRule rule, java.lang.String... flowerTypes)
void registerAcceptableFlower(net.minecraft.block.Block block,
java.lang.String... flowerTypes)
void registerAcceptableFlower(net.minecraft.block.state.IBlockState blockState,
java.lang.String... flowerTypes)
void registerAcceptableFlowerRule(IFlowerAcceptableRule flowerAcceptableRule, java.lang.String... flowerTypes)
void registerPlantableFlower(net.minecraft.block.state.IBlockState blockState,
double weight,
java.lang.String... flowerTypes)
weight - Weight for the Flower (Vanilla = 1.0, Modded flowers < 1.0)flowerTypes - See FlowerManager.FlowerTypeXXXboolean growFlower(java.lang.String flowerType,
net.minecraft.world.World world,
IIndividual individual,
net.minecraft.util.math.BlockPos pos,
java.util.Collection<net.minecraft.block.state.IBlockState> potentialFlowers)
java.util.Iterator<net.minecraft.util.math.BlockPos.MutableBlockPos> getAreaIterator(IBeeHousing beeHousing, IBee bee)
beeHousing - The bee housing that will help determine the size of the area to check.bee - The bee that will help determine the size of the area to check.IBlockPosPredicate createAcceptedFlowerPredicate(java.lang.String flowerType)
@Deprecated java.util.List<net.minecraft.util.math.BlockPos> getAcceptedFlowerCoordinates(IBeeHousing beeHousing, IBee bee, java.lang.String flowerType, int maxFlowers)
getAreaIterator(IBeeHousing, IBee) and createAcceptedFlowerPredicate(String).beeHousing - The bee housing that will help determine the size of the area to check.bee - The bee that will help determine the size of the area to check.flowerType - See FlowerManager.FlowerTypeXXXmaxFlowers - the largest number of flowers to check for before returning. Use 1 if you only need 1.@Deprecated
boolean isAcceptedFlower(java.lang.String flowerType,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
createAcceptedFlowerPredicate(String).@Deprecated
boolean growFlower(java.lang.String flowerType,
net.minecraft.world.World world,
IIndividual individual,
net.minecraft.util.math.BlockPos pos)
growFlower(String, World, IIndividual, BlockPos, Collection)