[Change] Moved and refactored Tag-API
This commit is contained in:
parent
25fa53541f
commit
184f3a6448
56 changed files with 1220 additions and 358 deletions
|
@ -2,7 +2,7 @@ package org.betterx.bclib.integration;
|
|||
|
||||
import org.betterx.bclib.BCLib;
|
||||
import org.betterx.bclib.api.v2.levelgen.features.BCLFeature;
|
||||
import org.betterx.bclib.api.v2.tag.TagAPI;
|
||||
import org.betterx.worlds.together.tag.TagManager;
|
||||
|
||||
import net.minecraft.core.Holder;
|
||||
import net.minecraft.core.Registry;
|
||||
|
@ -211,11 +211,11 @@ public abstract class ModIntegration {
|
|||
|
||||
public TagKey<Item> getItemTag(String name) {
|
||||
ResourceLocation id = getID(name);
|
||||
return TagAPI.makeItemTag(id);
|
||||
return TagManager.ITEMS.makeTag(id);
|
||||
}
|
||||
|
||||
public TagKey<Block> getBlockTag(String name) {
|
||||
ResourceLocation id = getID(name);
|
||||
return TagAPI.makeBlockTag(id);
|
||||
return TagManager.BLOCKS.makeTag(id);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue