Package com.blamejared.crafttweaker.api
Class CraftTweakerAPI
java.lang.Object
com.blamejared.crafttweaker.api.CraftTweakerAPI
Provides access to the main CraftTweaker API.
- Since:
- 9.1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.logging.log4j.LoggerLogger used to log CraftTweaker specific messages. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidApplies the givenIAction.static IAccessibleElementsProviderProvides access to theIAccessibleElementsProvider, allowing for more internal access.static ICraftTweakerRegistryProvides access to the main CraftTweaker set of registries.static IScriptRunManagerObtains theIScriptRunManagerused to create and execute script runs.static PathObtains aPathto the defaultscriptsdirectory used by CraftTweaker.
-
Field Details
-
LOGGER
public static final org.apache.logging.log4j.Logger LOGGERLogger used to log CraftTweaker specific messages.This logger is also wired to the
crafttweaker.logfile.- Since:
- 9.1.0
-
-
Constructor Details
-
CraftTweakerAPI
public CraftTweakerAPI()
-
-
Method Details
-
getAccessibleElementsProvider
Provides access to theIAccessibleElementsProvider, allowing for more internal access.- Returns:
- The
IAccessibleElementsProvider. - Since:
- 9.1.0
-
getRegistry
Provides access to the main CraftTweaker set of registries.- Returns:
- An instance of
ICraftTweakerRegistry. - Since:
- 9.1.0
-
getScriptRunManager
Obtains theIScriptRunManagerused to create and execute script runs.- Returns:
- The script run manager.
- Since:
- 9.1.0
-
getScriptsDirectory
Obtains aPathto the defaultscriptsdirectory used by CraftTweaker.- Returns:
- The default scripts directory.
- Since:
- 9.1.0
-
apply
Applies the givenIAction.- Parameters:
action- The action to apply.- Since:
- 9.1.0
- See Also:
-