rename tag addon to query addon

This commit is contained in:
dfsek 2022-06-19 00:20:42 -07:00
parent dff2388b37
commit 92d173cb89
9 changed files with 8 additions and 8 deletions

View File

@ -0,0 +1,4 @@
# Biome Query API
This addon contains an API to allow other addons to quickly query
Biome data, by baking queries and using Contexts on biomes.

View File

@ -15,7 +15,7 @@ import com.dfsek.terra.api.world.biome.Biome;
import java.util.Collection;
public class BiomeTagAPIAddon implements AddonInitializer {
public class BiomeQueryAPIAddon implements AddonInitializer {
@Inject
private Platform platform;

View File

@ -1,6 +1,6 @@
package com.dfsek.terra.addons.biome.tag.impl;
import com.dfsek.terra.addons.biome.tag.BiomeTagAPIAddon;
import com.dfsek.terra.addons.biome.tag.BiomeQueryAPIAddon;
import com.dfsek.terra.api.world.biome.Biome;
import java.util.function.Predicate;
@ -19,13 +19,13 @@ public class SingleTagQuery implements Predicate<Biome> {
if(tagIndex < 0) {
tagIndex = biome
.getContext()
.get(BiomeTagAPIAddon.BIOME_TAG_KEY)
.get(BiomeQueryAPIAddon.BIOME_TAG_KEY)
.getFlattener()
.index(tag);
}
return biome
.getContext()
.get(BiomeTagAPIAddon.BIOME_TAG_KEY)
.get(BiomeQueryAPIAddon.BIOME_TAG_KEY)
.get(tagIndex);
}
}

View File

@ -1,4 +0,0 @@
# Biome Tag API
This addon contains an API to allow other addons to quickly query
Biome tags, by baking queries and using Contexts on biomes.