28 lines
802 B
Java
28 lines
802 B
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package net.minecraft.client.multiplayer;
|
|
|
|
import java.util.List;
|
|
import net.minecraft.core.LayeredRegistryAccess;
|
|
import net.minecraft.core.RegistryAccess;
|
|
import net.minecraft.core.registries.BuiltInRegistries;
|
|
|
|
public enum ClientRegistryLayer {
|
|
STATIC,
|
|
REMOTE;
|
|
|
|
private static final List<ClientRegistryLayer> VALUES;
|
|
private static final RegistryAccess.Frozen STATIC_ACCESS;
|
|
|
|
public static LayeredRegistryAccess<ClientRegistryLayer> createRegistryAccess() {
|
|
return new LayeredRegistryAccess<ClientRegistryLayer>(VALUES).replaceFrom(STATIC, STATIC_ACCESS);
|
|
}
|
|
|
|
static {
|
|
VALUES = List.of(ClientRegistryLayer.values());
|
|
STATIC_ACCESS = RegistryAccess.fromRegistryOfRegistries(BuiltInRegistries.REGISTRY);
|
|
}
|
|
}
|
|
|