Package net.minecraft.structure
Class StrongholdGenerator.SmallCorridor
java.lang.Object
net.minecraft.structure.StructurePiece
net.minecraft.structure.StrongholdGenerator.Piece
net.minecraft.structure.StrongholdGenerator.SmallCorridor
- Enclosing class:
- StrongholdGenerator
public static class StrongholdGenerator.SmallCorridor extends StrongholdGenerator.Piece
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.structure.StrongholdGenerator.Piece
StrongholdGenerator.Piece.EntranceTypeNested classes/interfaces inherited from class net.minecraft.structure.StructurePiece
StructurePiece.BlockRandomizer -
Field Summary
Fields Modifier and Type Field Description private intlength -
Constructor Summary
Constructors Constructor Description SmallCorridor(int int2, BlockBox blockBox, Direction direction)SmallCorridor(StructureManager structureManager, CompoundTag compoundTag) -
Method Summary
Modifier and Type Method Description booleangenerate(ServerWorldAccess serverWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)static BlockBoxmethod_14857(List<StructurePiece> list, Random random, int int2, int int3, int int4, Direction direction)protected voidtoNbt(CompoundTag tag)Methods inherited from class net.minecraft.structure.StrongholdGenerator.Piece
generateEntrance, getRandomEntrance, method_14870, method_14871, method_14873, method_14874Methods inherited from class net.minecraft.structure.StructurePiece
addBlock, addBlockWithRandomThreshold, addChest, addChest, addDispenser, applyXTransform, applyYTransform, applyZTransform, fill, fillWithOutline, fillWithOutline, fillWithOutlineUnderSealevel, getBlockAt, getBoundingBox, getFacing, getLength, getOverlappingPiece, getRotation, getTag, getType, intersectsChunk, isUnderSeaLevel, method_14916, method_14919, method_14936, method_14937, placeJigsaw, setOrientation, translate
-
Field Details
-
length
private final int length
-
-
Constructor Details
-
Method Details
-
toNbt
- Overrides:
toNbtin classStrongholdGenerator.Piece
-
method_14857
public static BlockBox method_14857(List<StructurePiece> list, Random random, int int2, int int3, int int4, Direction direction) -
generate
public boolean generate(ServerWorldAccess serverWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)- Specified by:
generatein classStructurePiece
-