Class EntryLoader.Impl

java.lang.Object
net.minecraft.util.dynamic.EntryLoader.Impl
All Implemented Interfaces:
EntryLoader
Enclosing interface:
EntryLoader

public static final class EntryLoader.Impl extends Object implements EntryLoader
Mappings:
Namespace Name
official ye$a
intermediary net/minecraft/class_5506$class_5507
named net/minecraft/util/dynamic/EntryLoader$Impl
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Lye$a;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_36187 Lnet/minecraft/class_5506$class_5507;field_36187:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/util/dynamic/EntryLoader$Impl;LOGGER:Lorg/apache/logging/log4j/Logger;
    • values

      private final Map<RegistryKey<?>,EntryLoader.Impl.Element> values
      Mappings:
      Namespace Name Mixin selector
      official b Lye$a;b:Ljava/util/Map;
      intermediary field_26741 Lnet/minecraft/class_5506$class_5507;field_26741:Ljava/util/Map;
      named values Lnet/minecraft/util/dynamic/EntryLoader$Impl;values:Ljava/util/Map;
  • Constructor Details

    • Impl

      public Impl()
  • Method Details

    • add

      public <E> void add(DynamicRegistryManager.Impl registryManager, RegistryKey<E> key, com.mojang.serialization.Encoder<E> encoder, int rawId, E entry, com.mojang.serialization.Lifecycle lifecycle)
      Mappings:
      Namespace Name Mixin selector
      official a Lye$a;a(Lgy$b;Lyg;Lcom/mojang/serialization/Encoder;ILjava/lang/Object;Lcom/mojang/serialization/Lifecycle;)V
      intermediary method_31159 Lnet/minecraft/class_5506$class_5507;method_31159(Lnet/minecraft/class_5455$class_5457;Lnet/minecraft/class_5321;Lcom/mojang/serialization/Encoder;ILjava/lang/Object;Lcom/mojang/serialization/Lifecycle;)V
      named add Lnet/minecraft/util/dynamic/EntryLoader$Impl;add(Lnet/minecraft/util/registry/DynamicRegistryManager$Impl;Lnet/minecraft/util/registry/RegistryKey;Lcom/mojang/serialization/Encoder;ILjava/lang/Object;Lcom/mojang/serialization/Lifecycle;)V
    • getKnownEntryPaths

      public <E> Collection<RegistryKey<E>> getKnownEntryPaths(RegistryKey<? extends Registry<E>> key)
      Specified by:
      getKnownEntryPaths in interface EntryLoader
      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 Lye;a(Lyg;)Ljava/util/Collection;
      intermediary method_31156 Lnet/minecraft/class_5506;method_31156(Lnet/minecraft/class_5321;)Ljava/util/Collection;
      named getKnownEntryPaths Lnet/minecraft/util/dynamic/EntryLoader;getKnownEntryPaths(Lnet/minecraft/util/registry/RegistryKey;)Ljava/util/Collection;
    • load

      public <E> Optional<com.mojang.serialization.DataResult<EntryLoader.Entry<E>>> load(com.mojang.serialization.DynamicOps<JsonElement> json, RegistryKey<? extends Registry<E>> registryId, RegistryKey<E> entryId, com.mojang.serialization.Decoder<E> decoder)
      Specified by:
      load in interface EntryLoader
      Mappings:
      Namespace Name Mixin selector
      official a Lye;a(Lcom/mojang/serialization/DynamicOps;Lyg;Lyg;Lcom/mojang/serialization/Decoder;)Ljava/util/Optional;
      intermediary method_31155 Lnet/minecraft/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/EntryLoader;load(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/util/registry/RegistryKey;Lnet/minecraft/util/registry/RegistryKey;Lcom/mojang/serialization/Decoder;)Ljava/util/Optional;