2021-02-27 16:33:00 +01:00
|
|
|
package de.ellpeck.actuallyadditions.api;
|
|
|
|
|
|
|
|
import de.ellpeck.actuallyadditions.mod.ActuallyAdditions;
|
|
|
|
import net.minecraft.item.Item;
|
|
|
|
import net.minecraft.tags.ITag;
|
|
|
|
import net.minecraft.tags.ItemTags;
|
2023-12-20 22:02:25 +01:00
|
|
|
import net.minecraft.util.ResourceLocation;
|
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
|
|
|
|
}
|
2021-02-27 16:33:00 +01:00
|
|
|
public static final ITag.INamedTag<Item> DRILLS = tag("drills");
|
|
|
|
public static final ITag.INamedTag<Item> COFFEE_BEANS = tag("coffee_beans");
|
2021-05-05 18:34:43 +02:00
|
|
|
public static final ITag.INamedTag<Item> TINY_COALS = tag("tiny_coals");
|
2023-12-20 22:02:25 +01:00
|
|
|
public static final ITag.INamedTag<Item> HOLDS_ITEMS = ItemTags.createOptional(new ResourceLocation("forge", "holds_items"));
|
2023-12-03 15:41:58 +01:00
|
|
|
public static final ITag.INamedTag<Item> CRYSTALS = tag("crystals");
|
2021-02-27 16:33:00 +01:00
|
|
|
|
|
|
|
private static ITag.INamedTag<Item> tag(String name) {
|
2021-08-22 17:09:06 +02:00
|
|
|
return ItemTags.bind(String.format("%s:%s", ActuallyAdditions.MODID, name));
|
2021-02-27 16:33:00 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|