public class CrafttweakerImplementationAPI
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator<IBlockDefinition> |
BLOCK_COMPARATOR |
static IEventHandle |
blockEventHandler |
static java.util.Set<IPlayer> |
blockInfoPlayers |
static java.util.Comparator<IEntityDefinition> |
ENTITY_COMPARATOR |
static MTEventManager |
events
Access point to the event handler implementation.
|
static java.util.Comparator<IItemDefinition> |
ITEM_COMPARATOR |
static java.util.Comparator<ILiquidDefinition> |
LIQUID_COMPARATOR |
static crafttweaker.CrafttweakerImplementationAPI.ListenBlockInfo |
LISTEN_BLOCK_INFO |
static MTLogger |
logger
Access point to the internal logger instance.
|
static IPlatformFunctions |
platform
Access point to general platform functions.
|
Constructor and Description |
---|
CrafttweakerImplementationAPI() |
Modifier and Type | Method and Description |
---|---|
static void |
init(IOreDict oreDict,
IRecipeManager recipes,
IFurnaceManager furnace,
IGame game,
ILoadedMods mods,
IFormatter formatter,
IVanilla vanilla,
IItemUtils itemUtils,
IBrewingManager brewing)
Initializes the CraftTweaker API.
|
static void |
load()
Called to reload scripts.
|
static void |
onServerStart(IServer server)
Must be called upon server start.
|
static void |
onServerStop()
Must be called upon server stop.
|
static void |
setScriptProvider(IScriptProvider provider)
Sets the script provider.
|
public static final MTEventManager events
public static final MTLogger logger
public static final java.util.Comparator<IItemDefinition> ITEM_COMPARATOR
public static final java.util.Comparator<ILiquidDefinition> LIQUID_COMPARATOR
public static final java.util.Comparator<IBlockDefinition> BLOCK_COMPARATOR
public static final java.util.Comparator<IEntityDefinition> ENTITY_COMPARATOR
public static final crafttweaker.CrafttweakerImplementationAPI.ListenBlockInfo LISTEN_BLOCK_INFO
public static IPlatformFunctions platform
public static java.util.Set<IPlayer> blockInfoPlayers
public static IEventHandle blockEventHandler
public static void init(IOreDict oreDict, IRecipeManager recipes, IFurnaceManager furnace, IGame game, ILoadedMods mods, IFormatter formatter, IVanilla vanilla, IItemUtils itemUtils, IBrewingManager brewing)
oreDict
- ore dictionary interfacerecipes
- recipe manager interfacefurnace
- furnace manager interfacegame
- game interfacemods
- mods interfaceformatter
- formatter interfacevanilla
- vanilla interfaceitemUtils
- itemUtils interfacebrewing
- brewing interfacepublic static void onServerStart(IServer server)
server
- server interfacepublic static void onServerStop()
public static void setScriptProvider(IScriptProvider provider)
provider
- script providerpublic static void load()