Package net.minecraft.structure
Class StrongholdGenerator.ChestCorridor
java.lang.Object
net.minecraft.structure.StructurePiece
net.minecraft.structure.StrongholdGenerator.Piece
net.minecraft.structure.StrongholdGenerator.ChestCorridor
- Enclosing class:
- StrongholdGenerator
public static class StrongholdGenerator.ChestCorridor extends StrongholdGenerator.Piece
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.structure.StrongholdGenerator.Piece
StrongholdGenerator.Piece.EntranceType
Nested classes/interfaces inherited from class net.minecraft.structure.StructurePiece
StructurePiece.BlockRandomizer
-
Field Summary
Fields Modifier and Type Field Description private boolean
chestGenerated
Fields inherited from class net.minecraft.structure.StrongholdGenerator.Piece
entryDoor
Fields inherited from class net.minecraft.structure.StructurePiece
AIR, boundingBox, chainLength
-
Constructor Summary
Constructors Constructor Description ChestCorridor(int chainLength, Random random, BlockBox boundingBox, Direction orientation)
ChestCorridor(StructureManager structureManager, CompoundTag compoundTag)
-
Method Summary
Modifier and Type Method Description static StrongholdGenerator.ChestCorridor
create(List<StructurePiece> pieces, Random random, int x, int y, int z, Direction orientation, int chainlength)
void
fillOpenings(StructurePiece start, List<StructurePiece> pieces, Random random)
boolean
generate(StructureWorldAccess structureWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)
protected void
toNbt(CompoundTag tag)
Methods inherited from class net.minecraft.structure.StrongholdGenerator.Piece
fillForwardOpening, fillNWOpening, fillSEOpening, generateEntrance, getRandomEntrance, isInbounds
Methods inherited from class net.minecraft.structure.StructurePiece
addBlock, addBlockWithRandomThreshold, addChest, addChest, addDispenser, applyXTransform, applyYTransform, applyZTransform, fill, fillDownwards, fillHalfEllipsoid, fillWithOutline, fillWithOutline, fillWithOutlineUnderSeaLevel, getBlockAt, getBoundingBox, getChainLength, getFacing, getOverlappingPiece, getRotation, getTag, getType, intersectsChunk, isTouchingLiquid, isUnderSeaLevel, orientateChest, setOrientation, translate
-
Field Details
-
chestGenerated
private boolean chestGenerated
-
-
Constructor Details
-
ChestCorridor
-
ChestCorridor
-
-
Method Details
-
toNbt
- Overrides:
toNbt
in classStrongholdGenerator.Piece
-
fillOpenings
- Overrides:
fillOpenings
in classStructurePiece
-
create
public static StrongholdGenerator.ChestCorridor create(List<StructurePiece> pieces, Random random, int x, int y, int z, Direction orientation, int chainlength) -
generate
public boolean generate(StructureWorldAccess structureWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)- Specified by:
generate
in classStructurePiece
-