Package com.ericlam.mc.groovier
Interface GroovierAPI
- All Known Implementing Classes:
GroovierCore
public interface GroovierAPI
api of groovier
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddScriptLoader(Class<? extends ScriptLoader> scriptLoader) add new scripts type loader<T> voidbindInstance(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 guiceget argument parserget injector (without service injection) for guiceget injector (with service injection) for guice
-
Method Details
-
addScriptLoader
add new scripts type loader- Parameters:
scriptLoader- script type loader
-
bindRegisters
add new registrable script type for plugin- Type Parameters:
T- registrable script type- Parameters:
validator- registrable script typeins- instance
-
bindInstance
bindInstance for guice- Type Parameters:
T- class type- Parameters:
type- class typeins- instance
-
bindType
bind class type for guice- Type Parameters:
T- class typeV- class- Parameters:
type- class typeclazz- class
-
bindProvider
bind provider for guice- Type Parameters:
T- class typeP- provider type- Parameters:
type- class typeclazz- class
-
getBaseInjector
get injector (without service injection) for guice- Returns:
- injector
-
getServiceInjector
get injector (with service injection) for guice- Returns:
- injector
-
getArgumentParser
get argument parser- Returns:
- argument parser
-