public final class StructureCompiler extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
attemptClassLoad |
static ReportType |
REPORT_TOO_MANY_GENERATED_CLASSES |
| Modifier and Type | Method and Description |
|---|---|
<TField> StructureModifier<TField> |
compile(StructureModifier<TField> source)
Compiles the given structure modifier.
|
<TField> boolean |
lookupClassLoader(StructureModifier<TField> source)
Lookup the current class loader for any previously generated classes before we attempt to generate something.
|
public static final ReportType REPORT_TOO_MANY_GENERATED_CLASSES
public static boolean attemptClassLoad
public <TField> boolean lookupClassLoader(StructureModifier<TField> source)
TField - Typesource - - the structure modifier to look up.public <TField> StructureModifier<TField> compile(StructureModifier<TField> source)
WARNING: Do NOT call this method in the main thread. Compiling may easily take 10 ms, which is already over 1/4 of a tick (50 ms). Let the background thread automatically compile the structure modifiers instead.
TField - Typesource - - structure modifier to compile.Copyright © 2012–2017 Comphenix and dmulloy2. Licensed under the GNU GPL v2.