Class RegistryOps.EntryLoader.Impl

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

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

    • values

      private final Map<RegistryKey<?>,​JsonElement> values
      Mappings:
      Namespace Name Mixin selector
      official a Lwt$b$a;a:Ljava/util/Map;
      intermediary field_26741 Lnet/minecraft/class_5382$class_5506$class_5507;field_26741:Ljava/util/Map;
      named values Lnet/minecraft/util/dynamic/RegistryOps$EntryLoader$Impl;values:Ljava/util/Map;
    • entryToRawId

      private final Object2IntMap<RegistryKey<?>> entryToRawId
      Mappings:
      Namespace Name Mixin selector
      official b Lwt$b$a;b:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
      intermediary field_26742 Lnet/minecraft/class_5382$class_5506$class_5507;field_26742:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
      named entryToRawId Lnet/minecraft/util/dynamic/RegistryOps$EntryLoader$Impl;entryToRawId:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
    • entryToLifecycle

      private final Map<RegistryKey<?>,​com.mojang.serialization.Lifecycle> entryToLifecycle
      Mappings:
      Namespace Name Mixin selector
      official c Lwt$b$a;c:Ljava/util/Map;
      intermediary field_26743 Lnet/minecraft/class_5382$class_5506$class_5507;field_26743:Ljava/util/Map;
      named entryToLifecycle Lnet/minecraft/util/dynamic/RegistryOps$EntryLoader$Impl;entryToLifecycle: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 Lwt$b$a;a(Lgx$b;Lwv;Lcom/mojang/serialization/Encoder;ILjava/lang/Object;Lcom/mojang/serialization/Lifecycle;)V
      intermediary method_31159 Lnet/minecraft/class_5382$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/RegistryOps$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 Collection<Identifier> getKnownEntryPaths(RegistryKey<? extends Registry<?>> key)
      Specified by:
      getKnownEntryPaths in interface RegistryOps.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 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

      public <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)
      Specified by:
      load in interface RegistryOps.EntryLoader
      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;