Test with stuff + Forestry potential support
This commit is contained in:
parent
5b05cf651b
commit
bd26e441cb
174 changed files with 5602 additions and 0 deletions
18
BM_src/forestry/api/world/ITreeGenData.java
Normal file
18
BM_src/forestry/api/world/ITreeGenData.java
Normal 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);
|
||||
}
|
17
BM_src/forestry/api/world/IWorldGenInterface.java
Normal file
17
BM_src/forestry/api/world/IWorldGenInterface.java
Normal 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);
|
||||
}
|
5
BM_src/forestry/api/world/WorldGenManager.java
Normal file
5
BM_src/forestry/api/world/WorldGenManager.java
Normal file
|
@ -0,0 +1,5 @@
|
|||
package forestry.api.world;
|
||||
|
||||
public class WorldGenManager {
|
||||
public static IWorldGenInterface worldgenInterface;
|
||||
}
|
3
BM_src/forestry/api/world/package-info.java
Normal file
3
BM_src/forestry/api/world/package-info.java
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue