程序包 org.bukkit

类 StructureType

java.lang.Object
org.bukkit.StructureType
所有已实现的接口:
Keyed

@Deprecated public final class StructureType extends Object implements Keyed
已过时。
This class does not represent the structures of a world well. Use Structure or StructureType instead.
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 StructureTypes is case-sensitive.
  • 字段详细资料

    • MINESHAFT

      public static final StructureType MINESHAFT
      已过时。
      Mineshafts 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.
    • VILLAGE

      public static final StructureType VILLAGE
      已过时。
      Villages 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_FORTRESS

      public static final StructureType NETHER_FORTRESS
      已过时。
      Nether 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.
    • STRONGHOLD

      public static final StructureType STRONGHOLD
      已过时。
      Strongholds are underground structures that consist of many rooms, libraries, and an end portal room.
      They can be found using an Material.ENDER_EYE.
    • JUNGLE_PYRAMID

      public static final StructureType JUNGLE_PYRAMID
      已过时。
      Jungle 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_RUIN

      public static final StructureType OCEAN_RUIN
      已过时。
      Ocean 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_PYRAMID

      public static final StructureType DESERT_PYRAMID
      已过时。
      Desert pyramids (also known as desert temples) are found in deserts.
      They are usually composed of sandstone and stained terracotta.
    • IGLOO

      public static final StructureType IGLOO
      已过时。
      Igloos are structures that generate in snowy biomes.
      They consist of the house, as well as a basement.
    • SWAMP_HUT

      public static final StructureType SWAMP_HUT
      已过时。
      Swamp huts (also known as witch huts) generate in swamp biomes and have the ability to spawn witches.
    • OCEAN_MONUMENT

      public static final StructureType OCEAN_MONUMENT
      已过时。
      Ocean 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_CITY

      public static final StructureType END_CITY
      已过时。
      End 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_MANSION

      public static final StructureType WOODLAND_MANSION
      已过时。
      Mansions (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_TREASURE

      public static final StructureType BURIED_TREASURE
      已过时。
      Buried treasure consists of a single chest buried in the beach sand or gravel, with random loot in it.
    • SHIPWRECK

      public static final StructureType SHIPWRECK
      已过时。
      Shipwrecks 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_OUTPOST

      public static final StructureType PILLAGER_OUTPOST
      已过时。
      Pillager outposts may contain crossbows.
    • NETHER_FOSSIL

      public static final StructureType NETHER_FOSSIL
      已过时。
      Nether fossils.
    • RUINED_PORTAL

      public static final StructureType RUINED_PORTAL
      已过时。
      Ruined portal.
    • BASTION_REMNANT

      public static final StructureType BASTION_REMNANT
      已过时。
      Bastion remnant.
  • 方法详细资料

    • getName

      @NotNull public @NotNull String getName()
      已过时。
      Get the name of this structure. This is case-sensitive when used in commands.
      返回:
      the name of this structure
    • getMapIcon

      @Nullable public MapCursor.Type getMapIcon()
      已过时。
      Get the MapCursor.Type that this structure can use on maps. If this is null, this structure will not appear on explorer maps.
      返回:
      the MapCursor.Type or null.
    • equals

      public boolean equals(Object other)
      已过时。
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      已过时。
      覆盖:
      hashCode 在类中 Object
    • toString

      public String toString()
      已过时。
      覆盖:
      toString 在类中 Object
    • getStructureTypes

      @NotNull public static @NotNull Map<String,StructureType> getStructureTypes()
      已过时。
      Get all registered StructureTypes.
      返回:
      an immutable copy of registered structure types.
    • getKey

      @NotNull public @NotNull NamespacedKey getKey()
      已过时。
      从接口复制的说明: Keyed
      返回用于此对象的命名空间标识符.

      原文:Return the namespaced identifier for this object.

      指定者:
      getKey 在接口中 Keyed
      返回:
      标识此对象的 key