class ObjectHolderRef
extends java.lang.Object
GameRegistry.ObjectHolder
referencesModifier and Type | Class and Description |
---|---|
private static class |
ObjectHolderRef.FinalFieldHelper |
Modifier and Type | Field and Description |
---|---|
private java.lang.reflect.Field |
field |
private ResourceLocation |
injectedObject |
private boolean |
isValid |
private ForgeRegistry<?> |
registry |
Constructor and Description |
---|
ObjectHolderRef(java.lang.reflect.Field field,
ResourceLocation injectedObject,
boolean extractFromExistingValues) |
Modifier and Type | Method and Description |
---|---|
void |
apply() |
private ForgeRegistry<?> |
getRegistryForType(java.lang.reflect.Field field) |
boolean |
isValid() |
private java.lang.reflect.Field field
private ResourceLocation injectedObject
private boolean isValid
private ForgeRegistry<?> registry
ObjectHolderRef(java.lang.reflect.Field field, ResourceLocation injectedObject, boolean extractFromExistingValues)
@Nullable private ForgeRegistry<?> getRegistryForType(java.lang.reflect.Field field)
public boolean isValid()
public void apply()