Disable biome extractor

Need to figure out what became of the biome registry in 1.19.3
This commit is contained in:
Ryan 2022-12-29 23:31:06 -08:00
parent e386c9e2c2
commit 623e88908d
4 changed files with 5 additions and 7000 deletions

File diff suppressed because it is too large Load diff

View file

@ -38,7 +38,6 @@ public class Main implements ModInitializer {
LOGGER.info("Starting extractors...");
var extractors = new Extractor[]{
new Biomes(),
new Blocks(),
new Enchants(),
new Entities(),

View file

@ -1,13 +1,15 @@
package rs.valence.extractor.extractors;
// TODO: where is the biome registry in 1.19.3+?
/*
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import net.minecraft.entity.SpawnGroup;
import net.minecraft.util.Identifier;
import net.minecraft.util.collection.Weighted;
import net.minecraft.util.registry.BuiltinRegistries;
import net.minecraft.util.registry.Registry;
import net.minecraft.registry.Registries;
import net.minecraft.world.biome.BiomeParticleConfig;
import rs.valence.extractor.Main;
@ -34,8 +36,6 @@ public class Biomes implements Main.Extractor {
throw new RuntimeException(e);
}
var biomesJson = new JsonArray();
for (var biome : BuiltinRegistries.BIOME) {
var biomeIdent = BuiltinRegistries.BIOME.getId(biome);
assert biomeIdent != null;
@ -126,3 +126,4 @@ public class Biomes implements Main.Extractor {
return biomesJson;
}
}
*/

View file

@ -3,7 +3,6 @@ package rs.valence.extractor.extractors;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import net.minecraft.item.ItemPlacementContext;
import net.minecraft.registry.Registries;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.EmptyBlockView;