2021-02-27 16:33:00 +01:00
|
|
|
package de.ellpeck.actuallyadditions.api;
|
|
|
|
|
|
|
|
import de.ellpeck.actuallyadditions.mod.ActuallyAdditions;
|
2024-03-02 21:23:08 +01:00
|
|
|
import net.minecraft.core.Registry;
|
|
|
|
import net.minecraft.resources.ResourceLocation;
|
|
|
|
import net.minecraft.tags.BlockTags;
|
2021-02-27 16:33:00 +01:00
|
|
|
import net.minecraft.tags.ItemTags;
|
2024-03-02 21:23:08 +01:00
|
|
|
import net.minecraft.tags.TagKey;
|
|
|
|
import net.minecraft.world.item.Item;
|
|
|
|
import net.minecraft.world.level.block.Block;
|
2021-02-27 16:33:00 +01:00
|
|
|
|
|
|
|
public final class ActuallyTags {
|
2023-12-20 22:02:25 +01:00
|
|
|
public static final void init() {
|
|
|
|
// lol
|
|
|
|
Items.touch();
|
|
|
|
}
|
2021-02-27 16:33:00 +01:00
|
|
|
public static class Items {
|
2023-12-20 22:02:25 +01:00
|
|
|
public static void touch() {
|
|
|
|
// load the stupid tags
|
|
|
|
}
|
2024-03-02 21:23:08 +01:00
|
|
|
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");
|
2021-02-27 16:33:00 +01:00
|
|
|
|
2024-03-02 21:23:08 +01:00
|
|
|
private static TagKey<Item> tag(String name) {
|
|
|
|
return TagKey.create(Registry.ITEM_REGISTRY, 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(Registry.BLOCK_REGISTRY, new ResourceLocation(ActuallyAdditions.MODID, name));
|
2021-02-27 16:33:00 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|