Files
ForestryMC/src/main/java/forestry/api/genetics/IFlowerGrowthRule.java
T

32 lines
1.2 KiB
Java

/*******************************************************************************
* Copyright 2011-2014 SirSengir
*
* This work (the API) is licensed under the "MIT" License, see LICENSE.txt for details.
******************************************************************************/
package forestry.api.genetics;
import net.minecraft.world.World;
/**
* Basic condition for flower growing, such as checking that the soil is the correct type.
*/
public interface IFlowerGrowthRule {
/**
* Checks a position for suitability, and then plants a flower there. Returns true on success. For implementers, you
* can plant a random flower using IFlowerGrowthHelper.plantRandomFlower
*
* @since Forestry 4.0.8
*/
boolean growFlower(IFlowerGrowthHelper helper, String flowerType, World world, int x, int y, int z);
/**
* Checks a position for suitability, and then plants a flower there. Returns true on success. For implementers, get
* a flower to grow using IFlowerRegistry.getRandomPlantableFlower
*
* @deprecated since Forestry 4.0 Use the IFlowerGrowthHelper version.
*/
@Deprecated
boolean growFlower(IFlowerRegistry fr, String flowerType, World world, IIndividual individual, int x, int y, int z);
}