Package net.minecraft.util.registry
Class BuiltinRegistries
java.lang.Object
net.minecraft.util.registry.BuiltinRegistries
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 iw
intermediary net/minecraft/class_5458
named net/minecraft/util/registry/BuiltinRegistries
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static interface
A functional interface that initializes the registry and returns the default value. -
Field Summary
Modifier and TypeFieldDescriptionstatic final Registry<ChunkGeneratorSettings>
static final Registry<ConfiguredCarver<?>>
static final Registry<ConfiguredFeature<?,
?>> private static final Map<Identifier,
Supplier<? extends RegistryEntry<?>>> static final Registry<DensityFunction>
static final Registry<DimensionType>
static final DynamicRegistryManager
static final Registry<FlatLevelGeneratorPreset>
private static final Logger
static final Registry<MessageType>
static final Registry<DoublePerlinNoiseSampler.NoiseParameters>
static final Registry<PlacedFeature>
private static final MutableRegistry<MutableRegistry<?>>
static final Registry<StructurePool>
static final Registry<StructureProcessorList>
static final Registry<StructureSet>
static final Registry<WorldPreset>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> RegistryEntry<T>
static <T> RegistryEntry<T>
add
(Registry<T> registry, Identifier id, T object) static <T> RegistryEntry<T>
add
(Registry<T> registry, RegistryKey<T> key, T object) static <V extends T,
T>
RegistryEntry<V>private static <T> Registry<T>
addRegistry
(RegistryKey<? extends Registry<T>> registryRef, com.mojang.serialization.Lifecycle lifecycle, BuiltinRegistries.Initializer<T> initializer) private static <T> Registry<T>
addRegistry
(RegistryKey<? extends Registry<T>> registryRef, BuiltinRegistries.Initializer<T> initializer) private static <T,
R extends MutableRegistry<T>>
RaddRegistry
(RegistryKey<? extends Registry<T>> registryRef, R registry, BuiltinRegistries.Initializer<T> initializer, com.mojang.serialization.Lifecycle lifecycle) static void
init()
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official r
Liw;r:Lorg/slf4j/Logger;
intermediary field_25925
Lnet/minecraft/class_5458;field_25925:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/util/registry/BuiltinRegistries;LOGGER:Lorg/slf4j/Logger;
-
DEFAULT_VALUE_SUPPLIERS
- Mappings:
Namespace Name Mixin selector official s
Liw;s: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
- Mappings:
Namespace Name Mixin selector official t
Liw;t:Lht;
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
- Mappings:
Namespace Name Mixin selector official a
Liw;a:Lhm;
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;
-
DIMENSION_TYPE
- Mappings:
Namespace Name Mixin selector official b
Liw;b:Lhm;
intermediary field_38009
Lnet/minecraft/class_5458;field_38009:Lnet/minecraft/class_2378;
named DIMENSION_TYPE
Lnet/minecraft/util/registry/BuiltinRegistries;DIMENSION_TYPE:Lnet/minecraft/util/registry/Registry;
-
CONFIGURED_CARVER
- Mappings:
Namespace Name Mixin selector official c
Liw;c:Lhm;
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
- Mappings:
Namespace Name Mixin selector official d
Liw;d:Lhm;
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;
-
PLACED_FEATURE
- Mappings:
Namespace Name Mixin selector official e
Liw;e:Lhm;
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
- Mappings:
Namespace Name Mixin selector official f
Liw;f:Lhm;
intermediary field_25930
Lnet/minecraft/class_5458;field_25930:Lnet/minecraft/class_2378;
named STRUCTURE
Lnet/minecraft/util/registry/BuiltinRegistries;STRUCTURE:Lnet/minecraft/util/registry/Registry;
-
STRUCTURE_SET
- Mappings:
Namespace Name Mixin selector official g
Liw;g:Lhm;
intermediary field_37231
Lnet/minecraft/class_5458;field_37231:Lnet/minecraft/class_2378;
named STRUCTURE_SET
Lnet/minecraft/util/registry/BuiltinRegistries;STRUCTURE_SET:Lnet/minecraft/util/registry/Registry;
-
STRUCTURE_PROCESSOR_LIST
- Mappings:
Namespace Name Mixin selector official h
Liw;h:Lhm;
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
- Mappings:
Namespace Name Mixin selector official i
Liw;i:Lhm;
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
- Mappings:
Namespace Name Mixin selector official j
Liw;j:Lhm;
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;
-
NOISE_PARAMETERS
- Mappings:
Namespace Name Mixin selector official k
Liw;k:Lhm;
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;
-
DENSITY_FUNCTION
- Mappings:
Namespace Name Mixin selector official l
Liw;l:Lhm;
intermediary field_37232
Lnet/minecraft/class_5458;field_37232:Lnet/minecraft/class_2378;
named DENSITY_FUNCTION
Lnet/minecraft/util/registry/BuiltinRegistries;DENSITY_FUNCTION:Lnet/minecraft/util/registry/Registry;
-
CHUNK_GENERATOR_SETTINGS
- Mappings:
Namespace Name Mixin selector official m
Liw;m:Lhm;
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;
-
WORLD_PRESET
- Mappings:
Namespace Name Mixin selector official n
Liw;n:Lhm;
intermediary field_38010
Lnet/minecraft/class_5458;field_38010:Lnet/minecraft/class_2378;
named WORLD_PRESET
Lnet/minecraft/util/registry/BuiltinRegistries;WORLD_PRESET:Lnet/minecraft/util/registry/Registry;
-
FLAT_LEVEL_GENERATOR_PRESET
- Mappings:
Namespace Name Mixin selector official o
Liw;o:Lhm;
intermediary field_38011
Lnet/minecraft/class_5458;field_38011:Lnet/minecraft/class_2378;
named FLAT_LEVEL_GENERATOR_PRESET
Lnet/minecraft/util/registry/BuiltinRegistries;FLAT_LEVEL_GENERATOR_PRESET:Lnet/minecraft/util/registry/Registry;
-
MESSAGE_TYPE
- Mappings:
Namespace Name Mixin selector official p
Liw;p:Lhm;
intermediary field_39364
Lnet/minecraft/class_5458;field_39364:Lnet/minecraft/class_2378;
named MESSAGE_TYPE
Lnet/minecraft/util/registry/BuiltinRegistries;MESSAGE_TYPE:Lnet/minecraft/util/registry/Registry;
-
DYNAMIC_REGISTRY_MANAGER
- Mappings:
Namespace Name Mixin selector official q
Liw;q:Lhn;
intermediary field_36476
Lnet/minecraft/class_5458;field_36476:Lnet/minecraft/class_5455;
named DYNAMIC_REGISTRY_MANAGER
Lnet/minecraft/util/registry/BuiltinRegistries;DYNAMIC_REGISTRY_MANAGER:Lnet/minecraft/util/registry/DynamicRegistryManager;
-
-
Constructor Details
-
BuiltinRegistries
public BuiltinRegistries()
-
-
Method Details
-
addRegistry
private static <T> Registry<T> addRegistry(RegistryKey<? extends Registry<T>> registryRef, BuiltinRegistries.Initializer<T> initializer) - Mappings:
Namespace Name Mixin selector official a
Liw;a(Laba;Liw$a;)Lhm;
intermediary method_30565
Lnet/minecraft/class_5458;method_30565(Lnet/minecraft/class_5321;Lnet/minecraft/class_5458$class_7488;)Lnet/minecraft/class_2378;
named addRegistry
Lnet/minecraft/util/registry/BuiltinRegistries;addRegistry(Lnet/minecraft/util/registry/RegistryKey;Lnet/minecraft/util/registry/BuiltinRegistries$Initializer;)Lnet/minecraft/util/registry/Registry;
-
addRegistry
private static <T> Registry<T> addRegistry(RegistryKey<? extends Registry<T>> registryRef, com.mojang.serialization.Lifecycle lifecycle, BuiltinRegistries.Initializer<T> initializer) - Mappings:
Namespace Name Mixin selector official a
Liw;a(Laba;Lcom/mojang/serialization/Lifecycle;Liw$a;)Lhm;
intermediary method_30563
Lnet/minecraft/class_5458;method_30563(Lnet/minecraft/class_5321;Lcom/mojang/serialization/Lifecycle;Lnet/minecraft/class_5458$class_7488;)Lnet/minecraft/class_2378;
named addRegistry
Lnet/minecraft/util/registry/BuiltinRegistries;addRegistry(Lnet/minecraft/util/registry/RegistryKey;Lcom/mojang/serialization/Lifecycle;Lnet/minecraft/util/registry/BuiltinRegistries$Initializer;)Lnet/minecraft/util/registry/Registry;
-
addRegistry
private static <T,R extends MutableRegistry<T>> R addRegistry(RegistryKey<? extends Registry<T>> registryRef, R registry, BuiltinRegistries.Initializer<T> initializer, com.mojang.serialization.Lifecycle lifecycle) - Mappings:
Namespace Name Mixin selector official a
Liw;a(Laba;Lht;Liw$a;Lcom/mojang/serialization/Lifecycle;)Lht;
intermediary method_30564
Lnet/minecraft/class_5458;method_30564(Lnet/minecraft/class_5321;Lnet/minecraft/class_2385;Lnet/minecraft/class_5458$class_7488;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;Lnet/minecraft/util/registry/BuiltinRegistries$Initializer;Lcom/mojang/serialization/Lifecycle;)Lnet/minecraft/util/registry/MutableRegistry;
-
addCasted
- Mappings:
Namespace Name Mixin selector official a
Liw;a(Lhm;Ljava/lang/String;Ljava/lang/Object;)Lhc;
intermediary method_40360
Lnet/minecraft/class_5458;method_40360(Lnet/minecraft/class_2378;Ljava/lang/String;Ljava/lang/Object;)Lnet/minecraft/class_6880;
named addCasted
Lnet/minecraft/util/registry/BuiltinRegistries;addCasted(Lnet/minecraft/util/registry/Registry;Ljava/lang/String;Ljava/lang/Object;)Lnet/minecraft/util/registry/RegistryEntry;
-
add
- Mappings:
Namespace Name Mixin selector official b
Liw;b(Lhm;Ljava/lang/String;Ljava/lang/Object;)Lhc;
intermediary method_30561
Lnet/minecraft/class_5458;method_30561(Lnet/minecraft/class_2378;Ljava/lang/String;Ljava/lang/Object;)Lnet/minecraft/class_6880;
named add
Lnet/minecraft/util/registry/BuiltinRegistries;add(Lnet/minecraft/util/registry/Registry;Ljava/lang/String;Ljava/lang/Object;)Lnet/minecraft/util/registry/RegistryEntry;
-
add
- Mappings:
Namespace Name Mixin selector official a
Liw;a(Lhm;Labb;Ljava/lang/Object;)Lhc;
intermediary method_30562
Lnet/minecraft/class_5458;method_30562(Lnet/minecraft/class_2378;Lnet/minecraft/class_2960;Ljava/lang/Object;)Lnet/minecraft/class_6880;
named add
Lnet/minecraft/util/registry/BuiltinRegistries;add(Lnet/minecraft/util/registry/Registry;Lnet/minecraft/util/Identifier;Ljava/lang/Object;)Lnet/minecraft/util/registry/RegistryEntry;
-
add
- Mappings:
Namespace Name Mixin selector official a
Liw;a(Lhm;Laba;Ljava/lang/Object;)Lhc;
intermediary method_39203
Lnet/minecraft/class_5458;method_39203(Lnet/minecraft/class_2378;Lnet/minecraft/class_5321;Ljava/lang/Object;)Lnet/minecraft/class_6880;
named add
Lnet/minecraft/util/registry/BuiltinRegistries;add(Lnet/minecraft/util/registry/Registry;Lnet/minecraft/util/registry/RegistryKey;Ljava/lang/Object;)Lnet/minecraft/util/registry/RegistryEntry;
-
init
public static void init()- Mappings:
Namespace Name Mixin selector official a
Liw;a()V
intermediary method_30559
Lnet/minecraft/class_5458;method_30559()V
named init
Lnet/minecraft/util/registry/BuiltinRegistries;init()V
-