Interface RegistryOps.EntryLoader

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

public static interface RegistryOps.EntryLoader
Mappings:
Namespace Name
official wt$b
intermediary net/minecraft/class_5382$class_5506
named net/minecraft/util/dynamic/RegistryOps$EntryLoader
  • Method Details

    • getKnownEntryPaths

      Collection<Identifier> getKnownEntryPaths(RegistryKey<? extends Registry<?>> key)
      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.
      Mappings:
      Namespace Name Mixin selector
      official a Lwt$b;a(Lwv;)Ljava/util/Collection;
      intermediary method_31156 Lnet/minecraft/class_5382$class_5506;method_31156(Lnet/minecraft/class_5321;)Ljava/util/Collection;
      named getKnownEntryPaths Lnet/minecraft/util/dynamic/RegistryOps$EntryLoader;getKnownEntryPaths(Lnet/minecraft/util/registry/RegistryKey;)Ljava/util/Collection;
    • load

      <E> Optional<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)
      Mappings:
      Namespace Name Mixin selector
      official a Lwt$b;a(Lcom/mojang/serialization/DynamicOps;Lwv;Lwv;Lcom/mojang/serialization/Decoder;)Ljava/util/Optional;
      intermediary method_31155 Lnet/minecraft/class_5382$class_5506;method_31155(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/class_5321;Lnet/minecraft/class_5321;Lcom/mojang/serialization/Decoder;)Ljava/util/Optional;
      named load Lnet/minecraft/util/dynamic/RegistryOps$EntryLoader;load(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/util/registry/RegistryKey;Lnet/minecraft/util/registry/RegistryKey;Lcom/mojang/serialization/Decoder;)Ljava/util/Optional;
    • resourceBacked

      static RegistryOps.EntryLoader resourceBacked(ResourceManager resourceManager)
      Mappings:
      Namespace Name Mixin selector
      official a Lwt$b;a(Ladt;)Lwt$b;
      intermediary method_31154 Lnet/minecraft/class_5382$class_5506;method_31154(Lnet/minecraft/class_3300;)Lnet/minecraft/class_5382$class_5506;
      named resourceBacked Lnet/minecraft/util/dynamic/RegistryOps$EntryLoader;resourceBacked(Lnet/minecraft/resource/ResourceManager;)Lnet/minecraft/util/dynamic/RegistryOps$EntryLoader;