mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-18 19:29:17 +00:00
Move files
This commit is contained in:
1 parent
a958073079
commit
3429114d2a
274 files changed
+37547
-11
No files matched your search
@@ -0,0 +1,30 @@
|
||||
/*******************************************************************************
|
||||
* 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);
|
||||
}
|
||||
Reference in new issue
Block a user