public class ForestryAPI
extends java.lang.Object
If you need to distribute API files, try to only include the parts you are actually using to minimize conflicts due to API changes.
.core - Miscellaneous base classes and interfaces as well as some basics for tools, armor, game modes and stuff needed by biome mods. .fuels - Managers and classes to facilitate adding fuels to various engines and machines. .recipes - Managers and helpers to facilitate adding new recipes to various machines. .storage - Managers, events and interfaces for defining new backpacks and handling backpack behaviour. .mail - Anything related to handling letters and adding new mail carrier systems. .genetics - Shared code for all genetic subclasses. \ .apiculture - Bees. \ .arboriculture - Trees. \ .lepidopterology - Butterflies.
Note that if Forestry is not present, all these references will be null.
| Modifier and Type | Field and Description |
|---|---|
static IGameMode |
activeMode
The currently active
IGameMode. |
static IClimateManager |
climateManager
Deprecated.
Please use
ClimateManager.climateRoot. |
static java.util.Set<net.minecraft.util.ResourceLocation> |
enabledModules
The currently enabled Forestry modules.
|
static java.util.Set<java.lang.String> |
enabledPlugins
Deprecated.
Use
enabledModules |
static IErrorStateRegistry |
errorStateRegistry
Instance of the errorStateRegistry for registering errors.
|
static IFarmRegistry |
farmRegistry
A registry for register fertilizers,
IFarmables and ISimpleFarmLogics |
static IForestryConstants |
forestryConstants
Provides information on certain Forestry constants (Villager IDs, Chest gen keys, etc)
|
static java.lang.Object |
instance
The main mod instance for Forestry.
|
static IModelManager |
modelManager |
static IModuleManager |
moduleManager
Instance of the module manager of forestry.
|
static ITextureManager |
textureManager
A
ITextureManager needed for some things in the API. |
| Constructor and Description |
|---|
ForestryAPI() |
public static java.lang.Object instance
public static ITextureManager textureManager
ITextureManager needed for some things in the API.public static IModelManager modelManager
@Deprecated public static IClimateManager climateManager
ClimateManager.climateRoot.public static IModuleManager moduleManager
IModuleContainers in the constructor of your mod.public static IFarmRegistry farmRegistry
IFarmables and ISimpleFarmLogicspublic static IForestryConstants forestryConstants
public static java.util.Set<net.minecraft.util.ResourceLocation> enabledModules
@Deprecated public static java.util.Set<java.lang.String> enabledPlugins
enabledModulespublic static IErrorStateRegistry errorStateRegistry