Interface RegistryOps.EntryLoader

All Known Implementing Classes:
RegistryOps.EntryLoader.Impl
Enclosing class:
RegistryOps<T>

public static interface RegistryOps.EntryLoader
  • Method Details

    • getKnownEntryPaths

      Collection<Identifier> getKnownEntryPaths​(RegistryKey<? extends Registry<?>> registryKey)
      Returns:
      A collection of file Identifiers of all known entries of the given registry. Note that these are file Identifiers for use in a resource manager, not the logical names of the entries.
    • load

      <E> com.mojang.serialization.DataResult<com.mojang.datafixers.util.Pair<E,​OptionalInt>> load​(com.mojang.serialization.DynamicOps<JsonElement> dynamicOps, RegistryKey<? extends Registry<E>> registryId, RegistryKey<E> entryId, com.mojang.serialization.Decoder<E> decoder)
    • resourceBacked

      static RegistryOps.EntryLoader resourceBacked​(ResourceManager resourceManager)