Dungeon class

Three rooms in a row under the ground, joined by corridors, a ladder shaft up from the first: two guard rooms with a spawner each, and a larger last room with the chest, a relic and a treasure block. Every wall, floor and ceiling is walls, one brick in four mossy; two lights a room. The rooms lie along x, the site in the middle one, depth to depth + 13 blocks under the surface (never under y 8). Where each part lies is its DungeonPlan, which a game reads too.

Inheritance

Constructors

Dungeon({required String walls, required String ladder, String? mossy, String? light, String? spawner, String? chest, String? relic, String? treasure, int depth = 14})
A dungeon of these blocks; every one left null is left out.
const

Properties

blockNames → Set<String>
Every block it draws, so a world fails to compile, naming the block, when a game's table lacks one.
no setteroverride
chest → String?
The last room's chest.
final
clearing → int
How far around its site no tree roots, in blocks (the generator adds a tree's own reach); by default its radius on the surface and nothing under it, which is dug under the trees, never through them.
no setterinherited
depth → int
How far under the surface its site sits (a dungeon), 0 on the surface.
final
hashCode → int
The hash code for this object.
no setterinherited
ladder → String
The shaft's ladder.
final
light → String?
A light block, two in each room.
final
mossy → String?
One brick in four, or null for walls all through.
final
radius → int
How far it reaches from its site, in blocks, sideways: the site stays that far inside its region, and other structures' sites that far away.
no setteroverride
relic → String?
A block beside the chest (bones).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
spawner → String?
A block in the middle of each guard room.
final
treasure → String?
A block in the last room's corner (gold).
final
walls → String
The bricks.
final

Methods

build(StructureSite site) → void
Draws it around site.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited