# 类的使用
org.bukkit.generator.structure.Structure

使用Structure的程序包
程序包
说明
org.bukkit
Bukkit API的顶级程序包, 包含通用的API类和接口.
org.bukkit.event.world
与`世界`状态和变化有关的`事件`.
org.bukkit.generator.structure
Classes to facilitate world `Structure` generation.
org.bukkit.util
提供多种目的和单一目的的类以简化各种编程概念.

- ## org.bukkit中Structure的使用

  类型参数类型为Structure的org.bukkit中的字段
  修饰符和类型
  字段
  说明
  `static final Registry<Structure>`
  Registry.`STRUCTURE`
  Server structures.
  参数类型为Structure的org.bukkit中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Collection<GeneratedStructure>`
  Chunk.`getStructures(@NotNull Structure structure)`
  Gets all generated structures of a given `Structure` that intersect this chunk.
  `@NotNull Collection<GeneratedStructure>`
  World.`getStructures(int x, int z, @NotNull Structure structure)`
  Gets all generated structures of a given `Structure` that intersect the chunk at the given coordinates.
  `@Nullable StructureSearchResult`
  World.`locateNearestStructure(@NotNull Location origin, @NotNull Structure structure, int radius, boolean findUnexplored)`
  Find the closest nearby structure of a given `Structure`.

- ## org.bukkit.event.world中Structure的使用

  返回Structure的org.bukkit.event.world中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Structure`
  AsyncStructureGenerateEvent.`getStructure()`
  Get the structure reference that is generated.
  `@NotNull Structure`
  AsyncStructureSpawnEvent.`getStructure()`
  Get the structure reference that is generated.
  参数类型为Structure的org.bukkit.event.world中的构造器
  限定符
  构造器
  说明
  ``
  `AsyncStructureGenerateEvent(@NotNull World world, boolean async, @NotNull AsyncStructureGenerateEvent.Cause cause, @NotNull Structure structure, @NotNull BoundingBox boundingBox, int chunkX, int chunkZ)`
  ``
  `AsyncStructureSpawnEvent(@NotNull World world, @NotNull Structure structure, @NotNull BoundingBox boundingBox, int chunkX, int chunkZ)`

- ## org.bukkit.generator.structure中Structure的使用

  声明为Structure的org.bukkit.generator.structure中的字段
  修饰符和类型
  字段
  说明
  `static final Structure`
  Structure.`ANCIENT_CITY`
  `static final Structure`
  Structure.`BASTION_REMNANT`
  `static final Structure`
  Structure.`BURIED_TREASURE`
  `static final Structure`
  Structure.`DESERT_PYRAMID`
  `static final Structure`
  Structure.`END_CITY`
  `static final Structure`
  Structure.`FORTRESS`
  `static final Structure`
  Structure.`IGLOO`
  `static final Structure`
  Structure.`JUNGLE_PYRAMID`
  `static final Structure`
  Structure.`MANSION`
  `static final Structure`
  Structure.`MINESHAFT`
  `static final Structure`
  Structure.`MINESHAFT_MESA`
  `static final Structure`
  Structure.`MONUMENT`
  `static final Structure`
  Structure.`NETHER_FOSSIL`
  `static final Structure`
  Structure.`OCEAN_RUIN_COLD`
  `static final Structure`
  Structure.`OCEAN_RUIN_WARM`
  `static final Structure`
  Structure.`PILLAGER_OUTPOST`
  `static final Structure`
  Structure.`RUINED_PORTAL`
  `static final Structure`
  Structure.`RUINED_PORTAL_DESERT`
  `static final Structure`
  Structure.`RUINED_PORTAL_JUNGLE`
  `static final Structure`
  Structure.`RUINED_PORTAL_MOUNTAIN`
  `static final Structure`
  Structure.`RUINED_PORTAL_NETHER`
  `static final Structure`
  Structure.`RUINED_PORTAL_OCEAN`
  `static final Structure`
  Structure.`RUINED_PORTAL_SWAMP`
  `static final Structure`
  Structure.`SHIPWRECK`
  `static final Structure`
  Structure.`SHIPWRECK_BEACHED`
  `static final Structure`
  Structure.`STRONGHOLD`
  `static final Structure`
  Structure.`SWAMP_HUT`
  `static final Structure`
  Structure.`TRAIL_RUINS`
  `static final Structure`
  Structure.`TRIAL_CHAMBERS`
  `static final Structure`
  Structure.`VILLAGE_DESERT`
  `static final Structure`
  Structure.`VILLAGE_PLAINS`
  `static final Structure`
  Structure.`VILLAGE_SAVANNA`
  `static final Structure`
  Structure.`VILLAGE_SNOWY`
  `static final Structure`
  Structure.`VILLAGE_TAIGA`
  返回Structure的org.bukkit.generator.structure中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Structure`
  GeneratedStructure.`getStructure()`
  Gets the structure that this PlacedStructure represents.

- ## org.bukkit.util中Structure的使用

  返回Structure的org.bukkit.util中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Structure`
  StructureSearchResult.`getStructure()`
  Return the structure which was found.