Package com.ericlam.mc.groovier
Class GroovierCore
java.lang.Object
com.ericlam.mc.groovier.GroovierCore
- All Implemented Interfaces:
GroovierAPI
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addScriptLoader
(Class<? extends ScriptLoader> scriptLoader) add new scripts type loader<T> void
bindInstance
(Class<T> type, T ins) bindInstance for guice<T,
P extends javax.inject.Provider<T>>
voidbindProvider
(Class<T> type, Class<P> clazz) bind provider for guice<T extends ScriptValidator>
voidbindRegisters
(Class<T> validator, T ins) add new registrable script type for plugin<T,
V extends T>
voidbind class type for guicestatic GroovierAPI
getApi()
get argument parserget injector (without service injection) for guiceget injector (with service injection) for guice
-
Constructor Details
-
GroovierCore
public GroovierCore()
-
-
Method Details
-
getApi
-
addScriptLoader
Description copied from interface:GroovierAPI
add new scripts type loader- Specified by:
addScriptLoader
in interfaceGroovierAPI
- Parameters:
scriptLoader
- script type loader
-
bindRegisters
Description copied from interface:GroovierAPI
add new registrable script type for plugin- Specified by:
bindRegisters
in interfaceGroovierAPI
- Type Parameters:
T
- registrable script type- Parameters:
validator
- registrable script typeins
- instance
-
bindInstance
Description copied from interface:GroovierAPI
bindInstance for guice- Specified by:
bindInstance
in interfaceGroovierAPI
- Type Parameters:
T
- class type- Parameters:
type
- class typeins
- instance
-
bindType
Description copied from interface:GroovierAPI
bind class type for guice- Specified by:
bindType
in interfaceGroovierAPI
- Type Parameters:
T
- class typeV
- class- Parameters:
type
- class typeclazz
- class
-
bindProvider
Description copied from interface:GroovierAPI
bind provider for guice- Specified by:
bindProvider
in interfaceGroovierAPI
- Type Parameters:
T
- class typeP
- provider type- Parameters:
type
- class typeclazz
- class
-
getBaseInjector
Description copied from interface:GroovierAPI
get injector (without service injection) for guice- Specified by:
getBaseInjector
in interfaceGroovierAPI
- Returns:
- injector
-
getServiceInjector
Description copied from interface:GroovierAPI
get injector (with service injection) for guice- Specified by:
getServiceInjector
in interfaceGroovierAPI
- Returns:
- injector
-
getArgumentParser
Description copied from interface:GroovierAPI
get argument parser- Specified by:
getArgumentParser
in interfaceGroovierAPI
- Returns:
- argument parser
-