Package org.bukkit
Class StructureType
java.lang.Object
org.bukkit.StructureType
- All Implemented Interfaces:
- Keyed
This class handles the creation and storage of all structure types for
 Bukkit. Structure Types are the different kinds of structures that can be
 generated during world/chunk generation. These include Villages, Mineshafts,
 Mansions, etc.
 
The registration of new
The registration of new
StructureTypes is case-sensitive.- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StructureTypeBastion remnant.static final StructureTypeBuried treasure consists of a single chest buried in the beach sand or gravel, with random loot in it.static final StructureTypeDesert pyramids (also known as desert temples) are found in deserts.static final StructureTypeEnd Cities are tall castle-like structures that generate in the outer island of the End dimension.static final StructureTypeIgloos are structures that generate in snowy biomes.static final StructureTypeJungle pyramids (also known as jungle temples) are found in jungles.static final StructureTypeMineshafts are underground structures which consist of branching mining tunnels with wooden supports and broken rails.static final StructureTypeNether fortresses are very large complexes that mainly consist of netherbricks.static final StructureTypeNether fossils.static final StructureTypeOcean monuments are underwater structures.static final StructureTypeOcean ruins are clusters of many different blocks that generate underwater in ocean biomes (as well as on the surface of beaches).static final StructureTypePillager outposts may contain crossbows.static final StructureTypeRuined portal.static final StructureTypeShipwrecks are structures that generate on the floor of oceans or beaches.static final StructureTypeStrongholds are underground structures that consist of many rooms, libraries, and an end portal room.static final StructureTypeSwamp huts (also known as witch huts) generate in swamp biomes and have the ability to spawn witches.static final StructureTypeVillages are naturally generating structures that form above ground.static final StructureTypeMansions (also known as woodland mansions) are massive house structures that generate in dark forests, containing a wide variety of rooms.
- 
Method SummaryModifier and TypeMethodDescriptionbooleangetKey()Return the namespaced identifier for this object.Get theMapCursor.Typethat this structure can use on maps.getName()Get the name of this structure.static Map<String,StructureType> Get all registeredStructureTypes.inthashCode()toString()
- 
Field Details- 
MINESHAFTMineshafts are underground structures which consist of branching mining tunnels with wooden supports and broken rails.
 They are the only place where cave spider spawners and minecarts with chests can be found naturally.
- 
VILLAGEVillages are naturally generating structures that form above ground.
 They are usually generated in desert, plains, taiga, and savanna biomes and are a site for villager spawns, with whom the player can trade.
- 
NETHER_FORTRESSNether fortresses are very large complexes that mainly consist of netherbricks.
 They contain blaze spawners, nether wart farms, and loot chests. They are only generated in the nether dimension.
- 
STRONGHOLDStrongholds are underground structures that consist of many rooms, libraries, and an end portal room.
 They can be found using anMaterial.ENDER_EYE.
- 
JUNGLE_PYRAMIDJungle pyramids (also known as jungle temples) are found in jungles.
 They are usually composed of cobblestone and mossy cobblestone. They consist of three floors, with the bottom floor containing treasure chests.
- 
OCEAN_RUINOcean ruins are clusters of many different blocks that generate underwater in ocean biomes (as well as on the surface of beaches).
 They come in my different variations. The cold variants consist primarily of stone brick, and the warm variants consist of sandstone.
- 
DESERT_PYRAMIDDesert pyramids (also known as desert temples) are found in deserts.
 They are usually composed of sandstone and stained terracotta.
- 
IGLOOIgloos are structures that generate in snowy biomes.
 They consist of the house, as well as a basement.
- 
SWAMP_HUTSwamp huts (also known as witch huts) generate in swamp biomes and have the ability to spawn witches.
- 
OCEAN_MONUMENTOcean monuments are underwater structures.
 They are usually composed on all three different prismarine types and sea lanterns. They are the only place guardians and elder guardians spawn naturally.
- 
END_CITYEnd Cities are tall castle-like structures that generate in the outer island of the End dimension.
 They consist primarily of end stone bricks, purpur blocks, and end rods. They are the only place where shulkers can be found.
- 
WOODLAND_MANSIONMansions (also known as woodland mansions) are massive house structures that generate in dark forests, containing a wide variety of rooms.
 They are the only place where evokers, vindicators, and vexes spawn naturally (but only once)
- 
BURIED_TREASUREBuried treasure consists of a single chest buried in the beach sand or gravel, with random loot in it.
- 
SHIPWRECKShipwrecks are structures that generate on the floor of oceans or beaches.
 They are made up of wood materials, and contain 1-3 loot chests. They can generate sideways, upside-down, or upright.
- 
PILLAGER_OUTPOSTPillager outposts may contain crossbows.
- 
NETHER_FOSSILNether fossils.
- 
RUINED_PORTALRuined portal.
- 
BASTION_REMNANTBastion remnant.
 
- 
- 
Method Details- 
getNameGet the name of this structure. This is case-sensitive when used in commands.- Returns:
- the name of this structure
 
- 
getMapIconGet theMapCursor.Typethat this structure can use on maps. If this is null, this structure will not appear on explorer maps.- Returns:
- the MapCursor.Typeor null.
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
- 
getStructureTypesGet all registeredStructureTypes.- Returns:
- an immutable copy of registered structure types.
 
- 
getKeyDescription copied from interface:KeyedReturn the namespaced identifier for this object.
 
-