类的使用
org.bukkit.generator.structure.Structure
程序包
说明
Bukkit API的顶级程序包, 包含通用的API类和接口.
Classes to facilitate world
Structure
generation.提供多种目的和单一目的的类以简化各种编程概念.
-
org.bukkit中Structure的使用
修饰符和类型方法说明Chunk.getStructures
(@NotNull Structure structure) Gets all generated structures of a givenStructure
that intersect this chunk.World.getStructures
(int x, int z, @NotNull Structure structure) Gets all generated structures of a givenStructure
that intersect the chunk at the given coordinates.World.locateNearestStructure
(@NotNull Location origin, @NotNull Structure structure, int radius, boolean findUnexplored) Find the closest nearby structure of a givenStructure
. -
org.bukkit.event.world中Structure的使用
修饰符和类型方法说明AsyncStructureGenerateEvent.getStructure()
Get the structure reference that is generated.AsyncStructureSpawnEvent.getStructure()
Get the structure reference that is generated.限定符构造器说明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的使用
修饰符和类型字段说明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
修饰符和类型方法说明GeneratedStructure.getStructure()
Gets the structure that this PlacedStructure represents. -
org.bukkit.util中Structure的使用