mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 11:49:14 +00:00
23 lines
860 B
Java
23 lines
860 B
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.util.math.BlockPos;
|
|
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, BlockPos pos);
|
|
}
|