mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-17 14:21:08 +00:00
remove unused FabricUtil method
This commit is contained in:
@@ -72,7 +72,6 @@ public final class FabricUtil {
|
|||||||
|
|
||||||
private static final Map<Identifier, List<Identifier>>
|
private static final Map<Identifier, List<Identifier>>
|
||||||
TERRA_BIOME_MAP = new HashMap<>();
|
TERRA_BIOME_MAP = new HashMap<>();
|
||||||
private static final Map<Biome, RegistryEntry<net.minecraft.world.biome.Biome>> BIOME_MAP = new HashMap<>();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clones a Vanilla biome and injects Terra data to create a Terra-vanilla biome delegate.
|
* Clones a Vanilla biome and injects Terra data to create a Terra-vanilla biome delegate.
|
||||||
@@ -101,14 +100,9 @@ public final class FabricUtil {
|
|||||||
|
|
||||||
RegistryEntry<net.minecraft.world.biome.Biome> entry = getEntry(registry, identifier).orElseThrow();
|
RegistryEntry<net.minecraft.world.biome.Biome> entry = getEntry(registry, identifier).orElseThrow();
|
||||||
TERRA_BIOME_MAP.computeIfAbsent(vanilla.getKey().orElseThrow().getValue(), i -> new ArrayList<>()).add(identifier);
|
TERRA_BIOME_MAP.computeIfAbsent(vanilla.getKey().orElseThrow().getValue(), i -> new ArrayList<>()).add(identifier);
|
||||||
BIOME_MAP.put(biome, entry);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static RegistryEntry<net.minecraft.world.biome.Biome> getMinecraftBiome(Biome biome) {
|
|
||||||
return BIOME_MAP.get(biome);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void registerTags(Registry<net.minecraft.world.biome.Biome> registry) {
|
public static void registerTags(Registry<net.minecraft.world.biome.Biome> registry) {
|
||||||
logger.info("Doing tag garbage....");
|
logger.info("Doing tag garbage....");
|
||||||
Map<TagKey<net.minecraft.world.biome.Biome>, List<RegistryEntry<net.minecraft.world.biome.Biome>>> collect = registry
|
Map<TagKey<net.minecraft.world.biome.Biome>, List<RegistryEntry<net.minecraft.world.biome.Biome>>> collect = registry
|
||||||
|
|||||||
Reference in New Issue
Block a user