mirror of
https://github.com/XevianLight/Aphelion.git
synced 2026-05-11 01:50:56 +01:00
Basic development
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package net.xevianlight.aphelion.client.dimension;
|
||||
|
||||
import net.minecraft.resources.ResourceKey;
|
||||
import net.minecraft.resources.ResourceLocation;
|
||||
import net.minecraft.world.level.Level;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public final class DimensionRendererCache {
|
||||
|
||||
public static final Map<ResourceLocation, DimensionRenderer> RENDERERS = new HashMap<>();
|
||||
|
||||
public static void registerPlanetRenderers(Map<ResourceLocation, DimensionRenderer> renderers) {
|
||||
RENDERERS.clear();
|
||||
RENDERERS.putAll(renderers);
|
||||
|
||||
}
|
||||
|
||||
public static DimensionRenderer getOrDefault(ResourceLocation id) {
|
||||
return RENDERERS.getOrDefault(id, null);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user