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