/* * Decompiled with CFR 0.152. */ package net.minecraft.server; import java.util.List; import net.minecraft.core.LayeredRegistryAccess; import net.minecraft.core.RegistryAccess; import net.minecraft.core.registries.BuiltInRegistries; public enum RegistryLayer { STATIC, WORLDGEN, DIMENSIONS, RELOADABLE; private static final List VALUES; private static final RegistryAccess.Frozen STATIC_ACCESS; public static LayeredRegistryAccess createRegistryAccess() { return new LayeredRegistryAccess(VALUES).replaceFrom(STATIC, STATIC_ACCESS); } static { VALUES = List.of(RegistryLayer.values()); STATIC_ACCESS = RegistryAccess.fromRegistryOfRegistries(BuiltInRegistries.REGISTRY); } }