package net.minecraft.world.level.dimension;

import net.minecraft.core.registries.Registries;
import net.minecraft.resources.ResourceKey;
import net.minecraft.resources.ResourceLocation;

public class BuiltinDimensionTypes {
    public static final ResourceKey<DimensionType> OVERWORLD = register("overworld");
    public static final ResourceKey<DimensionType> NETHER = register("the_nether");
    public static final ResourceKey<DimensionType> END = register("the_end");
    public static final ResourceKey<DimensionType> OVERWORLD_CAVES = register("overworld_caves");
    public static final ResourceLocation OVERWORLD_EFFECTS = ResourceLocation.withDefaultNamespace("overworld");
    public static final ResourceLocation NETHER_EFFECTS = ResourceLocation.withDefaultNamespace("the_nether");
    public static final ResourceLocation END_EFFECTS = ResourceLocation.withDefaultNamespace("the_end");

    private static ResourceKey<DimensionType> register(String name) {
        return ResourceKey.create(Registries.DIMENSION_TYPE, ResourceLocation.withDefaultNamespace(name));
    }
}
