Package org.bukkit.generator.structure
Class Structure
java.lang.Object
org.bukkit.generator.structure.Structure
Represent a Structure from the world.
Listed structures are present in the default server. Depending on the server
there might be additional structures present (for example structures added by
data packs), which can be received via
Registry.STRUCTURE
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final Structure
static final Structure
static final Structure
static final Structure
static final Structure
static final Structure
static final Structure
static final Structure
static final Structure
static final Structure
static final Structure
static final Structure
static final Structure
static final Structure
static final Structure
static final Structure
static final Structure
static final Structure
static final Structure
static final Structure
static final Structure
static final Structure
static final Structure
static final Structure
static final Structure
static final Structure
static final Structure
static final Structure
static final Structure
static final Structure
static final Structure
static final Structure
static final Structure
static final Structure
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract @NotNull NamespacedKey
getKey()
Deprecated, for removal: This API element is subject to removal in a future version.abstract @NotNull StructureType
Returns the type of the structure.key()
Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
PILLAGER_OUTPOST
-
MINESHAFT
-
MINESHAFT_MESA
-
MANSION
-
JUNGLE_PYRAMID
-
DESERT_PYRAMID
-
IGLOO
-
SHIPWRECK
-
SHIPWRECK_BEACHED
-
SWAMP_HUT
-
STRONGHOLD
-
MONUMENT
-
OCEAN_RUIN_COLD
-
OCEAN_RUIN_WARM
-
FORTRESS
-
NETHER_FOSSIL
-
END_CITY
-
BURIED_TREASURE
-
BASTION_REMNANT
-
VILLAGE_PLAINS
-
VILLAGE_DESERT
-
VILLAGE_SAVANNA
-
VILLAGE_SNOWY
-
VILLAGE_TAIGA
-
RUINED_PORTAL
-
RUINED_PORTAL_DESERT
-
RUINED_PORTAL_JUNGLE
-
RUINED_PORTAL_SWAMP
-
RUINED_PORTAL_MOUNTAIN
-
RUINED_PORTAL_OCEAN
-
RUINED_PORTAL_NETHER
-
ANCIENT_CITY
-
TRAIL_RUINS
-
TRIAL_CHAMBERS
-
-
Constructor Details
-
Structure
public Structure()
-
-
Method Details
-
getStructureType
Returns the type of the structure.- Returns:
- the type of structure
-
getKey
@Deprecated(since="1.20.4", forRemoval=true) @NotNull public abstract @NotNull NamespacedKey getKey()Deprecated, for removal: This API element is subject to removal in a future version.useRegistry.getKey(Keyed)
,RegistryAccess.getRegistry(io.papermc.paper.registry.RegistryKey)
, andRegistryKey.STRUCTURE
. Structures can exist without a key.Description copied from interface:Keyed
Return the namespaced identifier for this object. -
key
Deprecated, for removal: This API element is subject to removal in a future version.useRegistry.getKey(Keyed)
,RegistryAccess.getRegistry(io.papermc.paper.registry.RegistryKey)
, andRegistryKey.STRUCTURE
. Structures can exist without a key.Description copied from interface:Keyed
Returns the unique identifier for this object.
-
Registry.getKey(Keyed)
,RegistryAccess.getRegistry(io.papermc.paper.registry.RegistryKey)
, andRegistryKey.STRUCTURE
.