Skip to main content

Module stronghold

Module stronghold 

Source
Expand description

Stronghold piece generation. Vanilla’s StrongholdPieces recursive BFS; produces bounding boxes only (no blocks).

StructsΒ§

Piece πŸ”’
PieceWeight πŸ”’
State πŸ”’
StrongholdGeneratedPiece
One generated stronghold piece.
StrongholdStructure
Registered under "minecraft:stronghold". Biome check at chunk center, surface Y.

EnumsΒ§

PT πŸ”’
StrongholdPieceData
Vanilla stronghold piece runtime state needed by postProcess.
StrongholdSmallDoorType
Vanilla StrongholdPiece.SmallDoorType.

ConstantsΒ§

HORIZONTAL_DIRS πŸ”’
LOWEST_Y πŸ”’
MAX_DEPTH πŸ”’
MAX_DISTANCE πŸ”’

FunctionsΒ§

add_children πŸ”’
create_piece πŸ”’
find_box πŸ”’
fwd πŸ”’
gen_and_add πŸ”’
generate_piece πŸ”’
generate_pieces
All stronghold pieces for a chunk. Vanilla calls setOrientation(direction) on every stronghold piece, and threads genDepth through the DFS via each subclass’s createPiece helper.
is_ok πŸ”’
left πŸ”’
orient_box πŸ”’
Vanilla’s BoundingBox.orientBox.
random_horizontal πŸ”’
right πŸ”’
weights πŸ”’