Package net.minecraftforge.registries
Class ObjectHolderRef
java.lang.Object
net.minecraftforge.registries.ObjectHolderRef
- All Implemented Interfaces:
Consumer<Predicate<ResourceLocation>>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Field
private final ResourceLocation
private static final org.apache.logging.log4j.Logger
private final ForgeRegistry
<?> -
Constructor Summary
ModifierConstructorDescriptionprivate
ObjectHolderRef
(ForgeRegistry<?> registry, Field field, ResourceLocation injectedObject) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(Predicate<ResourceLocation> filter) (package private) static @Nullable ObjectHolderRef
create
(ResourceLocation registryName, Field field, String injectedObject, boolean extractFromExistingValues) boolean
int
hashCode()
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
field
-
injectedObject
-
registry
-
-
Constructor Details
-
ObjectHolderRef
-
-
Method Details
-
create
@Nullable static @Nullable ObjectHolderRef create(ResourceLocation registryName, Field field, String injectedObject, boolean extractFromExistingValues) -
accept
- Specified by:
accept
in interfaceConsumer<Predicate<ResourceLocation>>
-
hashCode
public int hashCode() -
equals
-