Commits
Parker Hawke authored and md_5 committed 83640dd19e7
1 1 | package org.bukkit.block.banner; |
2 2 | |
3 3 | import java.util.HashMap; |
4 4 | import java.util.Map; |
5 5 | import org.bukkit.Keyed; |
6 6 | import org.bukkit.MinecraftExperimental; |
7 + | import org.bukkit.MinecraftExperimental.Requires; |
7 8 | import org.bukkit.NamespacedKey; |
8 9 | import org.bukkit.Registry; |
9 10 | import org.jetbrains.annotations.Contract; |
10 11 | import org.jetbrains.annotations.NotNull; |
11 12 | import org.jetbrains.annotations.Nullable; |
12 13 | |
13 14 | public enum PatternType implements Keyed { |
14 15 | BASE("b", "base"), |
15 16 | SQUARE_BOTTOM_LEFT("bl", "square_bottom_left"), |
16 17 | SQUARE_BOTTOM_RIGHT("br", "square_bottom_right"), |
45 46 | CURLY_BORDER("cbo", "curly_border"), |
46 47 | CREEPER("cre", "creeper"), |
47 48 | GRADIENT("gra", "gradient"), |
48 49 | GRADIENT_UP("gru", "gradient_up"), |
49 50 | BRICKS("bri", "bricks"), |
50 51 | SKULL("sku", "skull"), |
51 52 | FLOWER("flo", "flower"), |
52 53 | MOJANG("moj", "mojang"), |
53 54 | GLOBE("glb", "globe"), |
54 55 | PIGLIN("pig", "piglin"), |
55 - | |
56 + | (Requires.UPDATE_1_21) |
56 57 | FLOW("flw", "flow"), |
57 - | |
58 + | (Requires.UPDATE_1_21) |
58 59 | GUSTER("gus", "guster"); |
59 60 | |
60 61 | private final String identifier; |
61 62 | private final NamespacedKey key; |
62 63 | private static final Map<String, PatternType> byString = new HashMap<String, PatternType>(); |
63 64 | |
64 65 | static { |
65 66 | for (PatternType p : values()) { |
66 67 | byString.put(p.identifier, p); |
67 68 | } |