All Superinterfaces:
DefaultedRegistryValue

@CatalogedBy(Structures.class) public interface Structure extends DefaultedRegistryValue
A structure used in world generation.
  • Method Details

    • place

      boolean place(ServerWorld world, Vector3i pos)
      Places the structure at given position and world
      Parameters:
      world - The world
      pos - The position
      Returns:
      true when the feature was successfully placed
    • place

      boolean place(ServerLocation location)
      Places the structure at given location
      Parameters:
      location - The location
      Returns:
      true when the feature was successfully placed
    • allowedBiomes

      Collection<Biome> allowedBiomes()
      Returns the biomes the structure is allowed in.
      Returns:
      The allowed biomes.
    • decorationStep

      DecorationStep decorationStep()
      Returns the decoration step the structure is used in.
      Returns:
      The decoration step
    • type

      Returns the structure type.
      Returns:
      The structure type
    • spawners

      Returns the spawner overrides to use in the structure instead of Biome.spawners()
      Returns:
      The spawner overrides
    • toContainer

      DataView toContainer()
      Returns the serialized structure configuration.

      Reconfigure a structure using StructureType.configure(DataView)

      Returns:
      The serialized structure configuration