Package net.minecraft.util.registry
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.
-
Field Summary
Fields Modifier and Type Field Description static Registry<Biome>
BIOME
static Registry<ChunkGeneratorSettings>
CHUNK_GENERATOR_SETTINGS
static Registry<ConfiguredCarver<?>>
CONFIGURED_CARVER
static Registry<ConfiguredFeature<?,?>>
CONFIGURED_FEATURE
static Registry<ConfiguredStructureFeature<?,?>>
CONFIGURED_STRUCTURE_FEATURE
static Registry<ConfiguredSurfaceBuilder<?>>
CONFIGURED_SURFACE_BUILDER
private static Map<Identifier,Supplier<?>>
DEFAULT_VALUE_SUPPLIERS
protected static Logger
LOGGER
static Registry<? extends Registry<?>>
REGISTRIES
private static MutableRegistry<MutableRegistry<?>>
ROOT
static Registry<StructurePool>
STRUCTURE_POOL
static Registry<StructureProcessorList>
STRUCTURE_PROCESSOR_LIST
-
Constructor Summary
Constructors Constructor Description BuiltinRegistries()
-
Method Summary
Modifier and Type Method Description static <T> T
add(Registry<? super T> registry, String id, T object)
static <V, T extends V>
Tadd(Registry<V> registry, Identifier id, T object)
private static <T> Registry<T>
addRegistry(RegistryKey<? extends Registry<T>> registryRef, com.mojang.serialization.Lifecycle lifecycle, Supplier<T> defaultValueSupplier)
private static <T> Registry<T>
addRegistry(RegistryKey<? extends Registry<T>> registryRef, Supplier<T> defaultValueSupplier)
private static <T, R extends MutableRegistry<T>>
RaddRegistry(RegistryKey<? extends Registry<T>> registryRef, R registry, Supplier<T> defaultValueSupplier, com.mojang.serialization.Lifecycle lifecycle)
static void
init()
static <V, T extends V>
Tset(Registry<V> registry, int rawId, RegistryKey<V> registryKey, T object)
-
Field Details
-
LOGGER
-
DEFAULT_VALUE_SUPPLIERS
-
ROOT
-
REGISTRIES
-
CONFIGURED_SURFACE_BUILDER
-
CONFIGURED_CARVER
-
CONFIGURED_FEATURE
-
CONFIGURED_STRUCTURE_FEATURE
-
STRUCTURE_PROCESSOR_LIST
-
STRUCTURE_POOL
-
BIOME
-
CHUNK_GENERATOR_SETTINGS
-
-
Constructor Details
-
BuiltinRegistries
public BuiltinRegistries()
-
-
Method Details
-
addRegistry
private static <T> Registry<T> addRegistry(RegistryKey<? extends Registry<T>> registryRef, Supplier<T> defaultValueSupplier) -
addRegistry
private static <T> Registry<T> addRegistry(RegistryKey<? extends Registry<T>> registryRef, com.mojang.serialization.Lifecycle lifecycle, Supplier<T> defaultValueSupplier) -
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) -
add
-
add
-
set
public static <V, T extends V> T set(Registry<V> registry, int rawId, RegistryKey<V> registryKey, T object) -
init
public static void init()
-