/
InspirationsTags.java
92 lines (77 loc) · 3.54 KB
/
InspirationsTags.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
package knightminer.inspirations.library;
import knightminer.inspirations.Inspirations;
import net.minecraft.block.Block;
import net.minecraft.fluid.Fluid;
import net.minecraft.item.Item;
import net.minecraft.tags.BlockTags;
import net.minecraft.tags.FluidTags;
import net.minecraft.tags.ITag.INamedTag;
import net.minecraft.tags.ItemTags;
public class InspirationsTags {
public static class Blocks {
public static final INamedTag<Block> MULCH = tag("mulch");
public static final INamedTag<Block> SMALL_FLOWERS = tag("small_flowers");
public static final INamedTag<Block> FLOWER_POTS = tag("flower_pots");
public static final INamedTag<Block> CARPETED_TRAPDOORS = tag("carpeted_trapdoors");
public static final INamedTag<Block> CARPETED_PRESSURE_PLATES = tag("carpeted_pressure_plates");
public static final INamedTag<Block> BOOKSHELVES = tag("bookshelves");
public static final INamedTag<Block> ENLIGHTENED_BUSHES = tag("enlightened_bushes");
/**
* Blocks with this tag act as fire for the cauldron.
*/
public static final INamedTag<Block> CAULDRON_FIRE = tag("cauldron_fire");
/**
* Creates a block tag for Inspirations
*/
private static INamedTag<Block> tag(String name) {
return BlockTags.makeWrapperTag(Inspirations.modID + ":" + name);
}
}
public static class Items {
// Duplicates of above. Flower pots and pressure plates have no item form.
public static final INamedTag<Item> MULCH = tag("mulch");
public static final INamedTag<Item> SMALL_FLOWERS = tag("small_flowers");
public static final INamedTag<Item> CARPETED_TRAPDOORS = tag("carpeted_trapdoors");
public static final INamedTag<Item> BOOKSHELVES = tag("bookshelves");
public static final INamedTag<Item> ENLIGHTENED_BUSHES = tag("enlightened_bushes");
/**
* Items with this tag are registered to perform cauldron recipes.
*/
public static final INamedTag<Item> DISP_CAULDRON_RECIPES = tag("cauldron_recipes");
/**
* Items with this tag are registered to have fluid tank functionality.
*/
public static final INamedTag<Item> DISP_FLUID_TANKS = tag("fluid_containers");
public static final INamedTag<Item> MILK_CONTAINERS = tag("milk_containers");
/**
* Items which are valid to be placed on bookshelves.
*/
public static final INamedTag<Item> BOOKS = tag("books");
/**
* Vanilla carpets and shulker boxes, for recipe use.
*/
public static final INamedTag<Item> CARPETS = tag("carpets");
public static final INamedTag<Item> SHULKER_BOXES = tag("shulker_boxes");
public static final INamedTag<Item> TERRACOTTA = tag("terracotta");
public static final INamedTag<Item> WAYPOINT_COMPASSES = tag("waypoint_compasses");
public static final INamedTag<Item> DYE_BOTTLES = tag("dyed_water_bottles");
/* Inputs for potion cauldron recipes */
public static final INamedTag<Item> SPLASH_BOTTLES = forgeTag("splash_bottles");
public static final INamedTag<Item> LINGERING_BOTTLES = forgeTag("lingering_bottles");
/**
* Creates an item tag for Inspirations
*/
private static INamedTag<Item> tag(String name) {
return ItemTags.makeWrapperTag(Inspirations.modID + ":" + name);
}
private static INamedTag<Item> forgeTag(String name) {
return ItemTags.makeWrapperTag("forge:" + name);
}
}
public static class Fluids {
public static final INamedTag<Fluid> MILK = forgeTag("milk");
private static INamedTag<Fluid> forgeTag(String name) {
return FluidTags.makeWrapperTag("forge:" + name);
}
}
}