Interface HolderLookup.RegistryLookup<T>

All Superinterfaces:
HolderGetter<T>, HolderLookup<T>, HolderOwner<T>
All Known Subinterfaces:
DefaultedRegistry<T>, HolderLookup.RegistryLookup.Delegate<T>, Registry<T>, WritableRegistry<T>
All Known Implementing Classes:
BaseMappedRegistry, DefaultedMappedRegistry, MappedRegistry, RegistrySetBuilder.EmptyTagLookupWrapper, RegistrySetBuilder.EmptyTagRegistryLookup
Enclosing interface:
HolderLookup<T>

public static interface HolderLookup.RegistryLookup<T> extends HolderLookup<T>, HolderOwner<T>
  • Method Details

    • key

      ResourceKey<? extends Registry<? extends T>> key()
    • registryLifecycle

      com.mojang.serialization.Lifecycle registryLifecycle()
    • filterFeatures

      default HolderLookup.RegistryLookup<T> filterFeatures(FeatureFlagSet p_249397_)
    • filterElements

      default HolderLookup.RegistryLookup<T> filterElements(Predicate<T> p_324043_)
    • getData

      @Nullable default <A> A getData(DataMapType<T,A> type, ResourceKey<T> key)
      Returns the data map value attached with the object with the key, or null if there's no attached value.
      Type Parameters:
      A - the data type
      Parameters:
      type - the type of the data map
      key - the object to get the value for
      Returns:
      the data map value attached with the object with the key, or null if there's no attached value