public class ObjectHolderRef extends java.lang.Object implements java.util.function.Consumer<java.util.function.Predicate<ResourceLocation>>
Modifier and Type | Field and Description |
---|---|
private java.lang.reflect.Field |
field |
private ResourceLocation |
injectedObject |
private boolean |
isValid |
private static org.apache.logging.log4j.Logger |
LOGGER |
private ForgeRegistry<?> |
registry |
Constructor and Description |
---|
ObjectHolderRef(java.lang.reflect.Field field,
ResourceLocation injectedObject) |
ObjectHolderRef(java.lang.reflect.Field field,
java.lang.String injectedObject,
boolean extractFromExistingValues) |
Modifier and Type | Method and Description |
---|---|
void |
accept(java.util.function.Predicate<ResourceLocation> filter) |
boolean |
equals(java.lang.Object other) |
private ForgeRegistry<?> |
getRegistryForType(java.lang.reflect.Field field) |
int |
hashCode() |
boolean |
isValid() |
private static final org.apache.logging.log4j.Logger LOGGER
private java.lang.reflect.Field field
private ResourceLocation injectedObject
private boolean isValid
private ForgeRegistry<?> registry
public ObjectHolderRef(java.lang.reflect.Field field, ResourceLocation injectedObject)
ObjectHolderRef(java.lang.reflect.Field field, java.lang.String injectedObject, boolean extractFromExistingValues)
@Nullable private ForgeRegistry<?> getRegistryForType(java.lang.reflect.Field field)
public boolean isValid()
public void accept(java.util.function.Predicate<ResourceLocation> filter)
accept
in interface java.util.function.Consumer<java.util.function.Predicate<ResourceLocation>>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object