Test with stuff + Forestry potential support

This commit is contained in:
WayofTime 2014-01-25 20:36:28 -05:00
parent 5b05cf651b
commit bd26e441cb
174 changed files with 5602 additions and 0 deletions

View file

@ -0,0 +1,18 @@
package forestry.api.world;
import net.minecraft.world.World;
public interface ITreeGenData {
int getGirth(World world, int x, int y, int z);
float getHeightModifier();
boolean canGrow(World world, int x, int y, int z, int expectedGirth, int expectedHeight);
void setLeaves(World world, String owner, int x, int y, int z);
boolean allowsFruitBlocks();
boolean trySpawnFruitBlock(World world, int x, int y, int z);
}

View file

@ -0,0 +1,17 @@
package forestry.api.world;
import net.minecraft.world.gen.feature.WorldGenerator;
public interface IWorldGenInterface {
/**
* Retrieves generators for trees identified by a given string.
*
* Returned generator classes take an {@link ITreeGenData} in the constructor.
*
* @param ident
* Unique identifier for tree type. Forestry's convention is 'treeSpecies', i.e. 'treeBaobab', 'treeSequoia'.
* @return All generators matching the given ident.
*/
Class<? extends WorldGenerator>[] getTreeGenerators(String ident);
}

View file

@ -0,0 +1,5 @@
package forestry.api.world;
public class WorldGenManager {
public static IWorldGenInterface worldgenInterface;
}

View file

@ -0,0 +1,3 @@
@API(apiVersion="1.0", owner="ForestryAPI|core", provides="ForestryAPI|world")
package forestry.api.world;
import cpw.mods.fml.common.API;