Class BuiltinRegistries

java.lang.Object
net.minecraft.util.registry.BuiltinRegistries

public class BuiltinRegistries extends Object
Stores a few hardcoded registries with builtin values for datapack-loadable registries, from which a registry tracker can create a new dynamic registry.

Note that these registries do not contain the actual entries that the server has, for that you will need to access it from DynamicRegistryManager.

See Also:
Mappings:
Namespace Name
official id
intermediary net/minecraft/class_5458
named net/minecraft/util/registry/BuiltinRegistries
  • Field Details

    • LOGGER

      protected static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Lid;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_25925 Lnet/minecraft/class_5458;field_25925:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/util/registry/BuiltinRegistries;LOGGER:Lorg/apache/logging/log4j/Logger;
    • DEFAULT_VALUE_SUPPLIERS

      private static final Map<Identifier,Supplier<?>> DEFAULT_VALUE_SUPPLIERS
      Mappings:
      Namespace Name Mixin selector
      official l Lid;l:Ljava/util/Map;
      intermediary field_25934 Lnet/minecraft/class_5458;field_25934:Ljava/util/Map;
      named DEFAULT_VALUE_SUPPLIERS Lnet/minecraft/util/registry/BuiltinRegistries;DEFAULT_VALUE_SUPPLIERS:Ljava/util/Map;
    • ROOT

      private static final MutableRegistry<MutableRegistry<?>> ROOT
      Mappings:
      Namespace Name Mixin selector
      official m Lid;m:Lhd;
      intermediary field_25935 Lnet/minecraft/class_5458;field_25935:Lnet/minecraft/class_2385;
      named ROOT Lnet/minecraft/util/registry/BuiltinRegistries;ROOT:Lnet/minecraft/util/registry/MutableRegistry;
    • REGISTRIES

      public static final Registry<? extends Registry<?>> REGISTRIES
      Mappings:
      Namespace Name Mixin selector
      official b Lid;b:Lgx;
      intermediary field_25926 Lnet/minecraft/class_5458;field_25926:Lnet/minecraft/class_2378;
      named REGISTRIES Lnet/minecraft/util/registry/BuiltinRegistries;REGISTRIES:Lnet/minecraft/util/registry/Registry;
    • CONFIGURED_CARVER

      public static final Registry<ConfiguredCarver<?>> CONFIGURED_CARVER
      Mappings:
      Namespace Name Mixin selector
      official c Lid;c:Lgx;
      intermediary field_25928 Lnet/minecraft/class_5458;field_25928:Lnet/minecraft/class_2378;
      named CONFIGURED_CARVER Lnet/minecraft/util/registry/BuiltinRegistries;CONFIGURED_CARVER:Lnet/minecraft/util/registry/Registry;
    • CONFIGURED_FEATURE

      public static final Registry<ConfiguredFeature<?,?>> CONFIGURED_FEATURE
      Mappings:
      Namespace Name Mixin selector
      official d Lid;d:Lgx;
      intermediary field_25929 Lnet/minecraft/class_5458;field_25929:Lnet/minecraft/class_2378;
      named CONFIGURED_FEATURE Lnet/minecraft/util/registry/BuiltinRegistries;CONFIGURED_FEATURE:Lnet/minecraft/util/registry/Registry;
    • CONFIGURED_STRUCTURE_FEATURE

      public static final Registry<ConfiguredStructureFeature<?,?>> CONFIGURED_STRUCTURE_FEATURE
      Mappings:
      Namespace Name Mixin selector
      official e Lid;e:Lgx;
      intermediary field_25930 Lnet/minecraft/class_5458;field_25930:Lnet/minecraft/class_2378;
      named CONFIGURED_STRUCTURE_FEATURE Lnet/minecraft/util/registry/BuiltinRegistries;CONFIGURED_STRUCTURE_FEATURE:Lnet/minecraft/util/registry/Registry;
    • PLACED_FEATURE

      public static final Registry<PlacedFeature> PLACED_FEATURE
      Mappings:
      Namespace Name Mixin selector
      official f Lid;f:Lgx;
      intermediary field_35761 Lnet/minecraft/class_5458;field_35761:Lnet/minecraft/class_2378;
      named PLACED_FEATURE Lnet/minecraft/util/registry/BuiltinRegistries;PLACED_FEATURE:Lnet/minecraft/util/registry/Registry;
    • STRUCTURE_PROCESSOR_LIST

      public static final Registry<StructureProcessorList> STRUCTURE_PROCESSOR_LIST
      Mappings:
      Namespace Name Mixin selector
      official g Lid;g:Lgx;
      intermediary field_25931 Lnet/minecraft/class_5458;field_25931:Lnet/minecraft/class_2378;
      named STRUCTURE_PROCESSOR_LIST Lnet/minecraft/util/registry/BuiltinRegistries;STRUCTURE_PROCESSOR_LIST:Lnet/minecraft/util/registry/Registry;
    • STRUCTURE_POOL

      public static final Registry<StructurePool> STRUCTURE_POOL
      Mappings:
      Namespace Name Mixin selector
      official h Lid;h:Lgx;
      intermediary field_25932 Lnet/minecraft/class_5458;field_25932:Lnet/minecraft/class_2378;
      named STRUCTURE_POOL Lnet/minecraft/util/registry/BuiltinRegistries;STRUCTURE_POOL:Lnet/minecraft/util/registry/Registry;
    • BIOME

      public static final Registry<Biome> BIOME
      Mappings:
      Namespace Name Mixin selector
      official i Lid;i:Lgx;
      intermediary field_25933 Lnet/minecraft/class_5458;field_25933:Lnet/minecraft/class_2378;
      named BIOME Lnet/minecraft/util/registry/BuiltinRegistries;BIOME:Lnet/minecraft/util/registry/Registry;
    • CHUNK_GENERATOR_SETTINGS

      public static final Registry<ChunkGeneratorSettings> CHUNK_GENERATOR_SETTINGS
      Mappings:
      Namespace Name Mixin selector
      official j Lid;j:Lgx;
      intermediary field_26375 Lnet/minecraft/class_5458;field_26375:Lnet/minecraft/class_2378;
      named CHUNK_GENERATOR_SETTINGS Lnet/minecraft/util/registry/BuiltinRegistries;CHUNK_GENERATOR_SETTINGS:Lnet/minecraft/util/registry/Registry;
    • NOISE_PARAMETERS

      public static final Registry<DoublePerlinNoiseSampler.NoiseParameters> NOISE_PARAMETERS
      Mappings:
      Namespace Name Mixin selector
      official k Lid;k:Lgx;
      intermediary field_35435 Lnet/minecraft/class_5458;field_35435:Lnet/minecraft/class_2378;
      named NOISE_PARAMETERS Lnet/minecraft/util/registry/BuiltinRegistries;NOISE_PARAMETERS:Lnet/minecraft/util/registry/Registry;
  • Constructor Details

    • BuiltinRegistries

      public BuiltinRegistries()
  • Method Details

    • addRegistry

      private static <T> Registry<T> addRegistry(RegistryKey<? extends Registry<T>> registryRef, Supplier<T> defaultValueSupplier)
      Mappings:
      Namespace Name Mixin selector
      official a Lid;a(Lya;Ljava/util/function/Supplier;)Lgx;
      intermediary method_30565 Lnet/minecraft/class_5458;method_30565(Lnet/minecraft/class_5321;Ljava/util/function/Supplier;)Lnet/minecraft/class_2378;
      named addRegistry Lnet/minecraft/util/registry/BuiltinRegistries;addRegistry(Lnet/minecraft/util/registry/RegistryKey;Ljava/util/function/Supplier;)Lnet/minecraft/util/registry/Registry;
    • addRegistry

      private static <T> Registry<T> addRegistry(RegistryKey<? extends Registry<T>> registryRef, com.mojang.serialization.Lifecycle lifecycle, Supplier<T> defaultValueSupplier)
      Mappings:
      Namespace Name Mixin selector
      official a Lid;a(Lya;Lcom/mojang/serialization/Lifecycle;Ljava/util/function/Supplier;)Lgx;
      intermediary method_30563 Lnet/minecraft/class_5458;method_30563(Lnet/minecraft/class_5321;Lcom/mojang/serialization/Lifecycle;Ljava/util/function/Supplier;)Lnet/minecraft/class_2378;
      named addRegistry Lnet/minecraft/util/registry/BuiltinRegistries;addRegistry(Lnet/minecraft/util/registry/RegistryKey;Lcom/mojang/serialization/Lifecycle;Ljava/util/function/Supplier;)Lnet/minecraft/util/registry/Registry;
    • addRegistry

      private static <T, R extends MutableRegistry<T>> R addRegistry(RegistryKey<? extends Registry<T>> registryRef, R registry, Supplier<T> defaultValueSupplier, com.mojang.serialization.Lifecycle lifecycle)
      Mappings:
      Namespace Name Mixin selector
      official a Lid;a(Lya;Lhd;Ljava/util/function/Supplier;Lcom/mojang/serialization/Lifecycle;)Lhd;
      intermediary method_30564 Lnet/minecraft/class_5458;method_30564(Lnet/minecraft/class_5321;Lnet/minecraft/class_2385;Ljava/util/function/Supplier;Lcom/mojang/serialization/Lifecycle;)Lnet/minecraft/class_2385;
      named addRegistry Lnet/minecraft/util/registry/BuiltinRegistries;addRegistry(Lnet/minecraft/util/registry/RegistryKey;Lnet/minecraft/util/registry/MutableRegistry;Ljava/util/function/Supplier;Lcom/mojang/serialization/Lifecycle;)Lnet/minecraft/util/registry/MutableRegistry;
    • add

      public static <T> T add(Registry<? super T> registry, String id, T object)
      Mappings:
      Namespace Name Mixin selector
      official a Lid;a(Lgx;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
      intermediary method_30561 Lnet/minecraft/class_5458;method_30561(Lnet/minecraft/class_2378;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
      named add Lnet/minecraft/util/registry/BuiltinRegistries;add(Lnet/minecraft/util/registry/Registry;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
    • add

      public static <V, T extends V> T add(Registry<V> registry, Identifier id, T object)
      Mappings:
      Namespace Name Mixin selector
      official a Lid;a(Lgx;Lyb;Ljava/lang/Object;)Ljava/lang/Object;
      intermediary method_30562 Lnet/minecraft/class_5458;method_30562(Lnet/minecraft/class_2378;Lnet/minecraft/class_2960;Ljava/lang/Object;)Ljava/lang/Object;
      named add Lnet/minecraft/util/registry/BuiltinRegistries;add(Lnet/minecraft/util/registry/Registry;Lnet/minecraft/util/Identifier;Ljava/lang/Object;)Ljava/lang/Object;
    • add

      public static <V, T extends V> T add(Registry<V> registry, RegistryKey<V> key, T object)
      Mappings:
      Namespace Name Mixin selector
      official a Lid;a(Lgx;Lya;Ljava/lang/Object;)Ljava/lang/Object;
      intermediary method_39203 Lnet/minecraft/class_5458;method_39203(Lnet/minecraft/class_2378;Lnet/minecraft/class_5321;Ljava/lang/Object;)Ljava/lang/Object;
      named add Lnet/minecraft/util/registry/BuiltinRegistries;add(Lnet/minecraft/util/registry/Registry;Lnet/minecraft/util/registry/RegistryKey;Ljava/lang/Object;)Ljava/lang/Object;
    • set

      public static <V, T extends V> T set(Registry<V> registry, RegistryKey<V> key, T object)
      Mappings:
      Namespace Name Mixin selector
      official b Lid;b(Lgx;Lya;Ljava/lang/Object;)Ljava/lang/Object;
      intermediary method_30560 Lnet/minecraft/class_5458;method_30560(Lnet/minecraft/class_2378;Lnet/minecraft/class_5321;Ljava/lang/Object;)Ljava/lang/Object;
      named set Lnet/minecraft/util/registry/BuiltinRegistries;set(Lnet/minecraft/util/registry/Registry;Lnet/minecraft/util/registry/RegistryKey;Ljava/lang/Object;)Ljava/lang/Object;
    • init

      public static void init()
      Mappings:
      Namespace Name Mixin selector
      official a Lid;a()V
      intermediary method_30559 Lnet/minecraft/class_5458;method_30559()V
      named init Lnet/minecraft/util/registry/BuiltinRegistries;init()V