Class ObjectHolderRef

java.lang.Object
net.minecraftforge.registries.ObjectHolderRef
All Implemented Interfaces:
Consumer<Predicate<ResourceLocation>>

public class ObjectHolderRef extends Object implements Consumer<Predicate<ResourceLocation>>
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • field

      private Field field
    • injectedObject

      private ResourceLocation injectedObject
    • isValid

      private boolean isValid
    • registry

      private ForgeRegistry<?> registry
  • Constructor Details

    • ObjectHolderRef

      public ObjectHolderRef(Field field, ResourceLocation injectedObject)
    • ObjectHolderRef

      ObjectHolderRef(Field field, String injectedObject, boolean extractFromExistingValues)
  • Method Details