Commits
Doc authored and md_5 committed d9c1eb83af4
1 1 | package org.bukkit.generator.structure; |
2 2 | |
3 3 | import org.bukkit.Keyed; |
4 + | import org.bukkit.MinecraftExperimental; |
4 5 | import org.bukkit.NamespacedKey; |
5 6 | import org.bukkit.Registry; |
6 7 | import org.jetbrains.annotations.NotNull; |
7 8 | |
8 9 | /** |
9 10 | * Represent a Structure from the world. |
10 11 | * |
11 12 | * Listed structures are present in the default server. Depending on the server |
12 13 | * there might be additional structures present (for example structures added by |
13 14 | * data packs), which can be received via {@link Registry#STRUCTURE}. |
40 41 | public static final Structure VILLAGE_TAIGA = getStructure("village_taiga"); |
41 42 | public static final Structure RUINED_PORTAL = getStructure("ruined_portal"); |
42 43 | public static final Structure RUINED_PORTAL_DESERT = getStructure("ruined_portal_desert"); |
43 44 | public static final Structure RUINED_PORTAL_JUNGLE = getStructure("ruined_portal_jungle"); |
44 45 | public static final Structure RUINED_PORTAL_SWAMP = getStructure("ruined_portal_swamp"); |
45 46 | public static final Structure RUINED_PORTAL_MOUNTAIN = getStructure("ruined_portal_mountain"); |
46 47 | public static final Structure RUINED_PORTAL_OCEAN = getStructure("ruined_portal_ocean"); |
47 48 | public static final Structure RUINED_PORTAL_NETHER = getStructure("ruined_portal_nether"); |
48 49 | public static final Structure ANCIENT_CITY = getStructure("ancient_city"); |
49 50 | public static final Structure TRAIL_RUINS = getStructure("trail_ruins"); |
51 + | |
50 52 | public static final Structure TRIAL_CHAMBERS = getStructure("trial_chambers"); |
51 53 | |
52 54 | private static Structure getStructure(String name) { |
53 55 | return Registry.STRUCTURE.get(NamespacedKey.minecraft(name)); |
54 56 | } |
55 57 | |
56 58 | /** |
57 59 | * Returns the type of the structure. |
58 60 | * |
59 61 | * @return the type of structure |