public abstract class RegistryEntryBuilder<API>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
DEFAULT_MINOR_VERSION |
protected static boolean |
NAMED_ENV |
protected ResourceLocationAPI<?> |
registryName |
protected static boolean |
SRG_ENV |
protected static CoreAPI.GameVersion |
VERSION |
| Constructor and Description |
|---|
RegistryEntryBuilder() |
| Modifier and Type | Method and Description |
|---|---|
abstract API |
build() |
protected <T> T |
findAndInitializeForVersion(java.lang.String baseClassName,
boolean minor,
java.lang.Object... args)
Assumes the target class is in the same package as the instance of this class.
|
protected <T> T |
findAndInitializeForVersion(java.lang.String baseClassName,
java.lang.Object... args)
Assumes the target class is in the same package as the instance of this class.
|
protected java.lang.String |
getClassForVersion(java.lang.String className,
boolean minor)
Assumes the target class is in the same package as the instance of this class.
|
RegistryEntryBuilder<API> |
setRegistryName(ResourceLocationAPI<?> name) |
protected static final boolean NAMED_ENV
protected static final boolean SRG_ENV
protected static final CoreAPI.GameVersion VERSION
protected static final boolean DEFAULT_MINOR_VERSION
protected ResourceLocationAPI<?> registryName
public abstract API build()
protected <T> T findAndInitializeForVersion(java.lang.String baseClassName,
java.lang.Object... args)
protected <T> T findAndInitializeForVersion(java.lang.String baseClassName,
boolean minor,
java.lang.Object... args)
protected java.lang.String getClassForVersion(java.lang.String className,
boolean minor)
public RegistryEntryBuilder<API> setRegistryName(ResourceLocationAPI<?> name)