ActuallyAdditions/src/main/java/de/ellpeck/actuallyadditions/api/ActuallyTags.java
2024-03-03 01:20:53 +01:00

52 lines
2.2 KiB
Java

package de.ellpeck.actuallyadditions.api;
import de.ellpeck.actuallyadditions.mod.ActuallyAdditions;
import net.minecraft.core.registries.Registries;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.tags.ItemTags;
import net.minecraft.tags.TagKey;
import net.minecraft.world.item.Item;
import net.minecraft.world.level.block.Block;
public final class ActuallyTags {
public static final void init() {
// lol
Items.touch();
Blocks.touch();
}
public static class Items {
public static void touch() {
// load the stupid tags
}
public static final TagKey<Item> DRILLS = tag("drills");
public static final TagKey<Item> COFFEE_BEANS = tag("coffee_beans");
public static final TagKey<Item> TINY_COALS = tag("tiny_coals");
public static final TagKey<Item> HOLDS_ITEMS = ItemTags.create(new ResourceLocation("forge", "holds_items"));
public static final TagKey<Item> CRYSTALS = tag("crystals");
private static TagKey<Item> tag(String name) {
return TagKey.create(Registries.ITEM, new ResourceLocation(ActuallyAdditions.MODID, name));
}
}
public static class Blocks {
public static void touch() {
// load the stupid tags
}
public static final TagKey<Block> MINEABLE_WITH_DRILL = tag("mineable/drill");
public static final TagKey<Block> MINEABLE_WITH_AIO = tag("mineable/aio");
public static final TagKey<Block> NEEDS_BLACK_QUARTZ_TOOL = tag("needs_black_quartz_tool");
public static final TagKey<Block> NEEDS_RESTONIA_TOOL = tag("needs_restonia_tool");
public static final TagKey<Block> NEEDS_PALIS_TOOL = tag("needs_palis_tool");
public static final TagKey<Block> NEEDS_DIAMATINE_TOOL = tag("needs_diamatine_tool");
public static final TagKey<Block> NEEDS_VOID_TOOL = tag("needs_void_tool");
public static final TagKey<Block> NEEDS_EMERADIC_TOOL = tag("needs_emeradic_tool");
public static final TagKey<Block> NEEDS_ENORI_TOOL = tag("needs_enori_tool");
private static TagKey<Block> tag(String name) {
return TagKey.create(Registries.BLOCK, new ResourceLocation(ActuallyAdditions.MODID, name));
}
}
}