Class ObjectHolderRef

  • All Implemented Interfaces:
    java.util.function.Consumer<java.util.function.Predicate<ResourceLocation>>

    public class ObjectHolderRef
    extends java.lang.Object
    implements java.util.function.Consumer<java.util.function.Predicate<ResourceLocation>>
    • Field Detail

      • LOGGER

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

        private java.lang.reflect.Field field
      • isValid

        private boolean isValid
    • Constructor Detail

      • ObjectHolderRef

        public ObjectHolderRef​(java.lang.reflect.Field field,
                               ResourceLocation injectedObject)
      • ObjectHolderRef

        ObjectHolderRef​(java.lang.reflect.Field field,
                        java.lang.String injectedObject,
                        boolean extractFromExistingValues)
    • Method Detail

      • getRegistryForType

        @Nullable
        private ForgeRegistry<?> getRegistryForType​(java.lang.reflect.Field field)
      • isValid

        public boolean isValid()
      • accept

        public void accept​(java.util.function.Predicate<ResourceLocation> filter)
        Specified by:
        accept in interface java.util.function.Consumer<java.util.function.Predicate<ResourceLocation>>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object