Package net.minecraft.structure
Class MineshaftGenerator.MineshaftCorridor
java.lang.Object
net.minecraft.structure.StructurePiece
net.minecraft.structure.MineshaftGenerator.MineshaftPart
net.minecraft.structure.MineshaftGenerator.MineshaftCorridor
- Enclosing class:
- MineshaftGenerator
public static class MineshaftGenerator.MineshaftCorridor extends MineshaftGenerator.MineshaftPart
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.structure.StructurePiece
StructurePiece.BlockRandomizer -
Field Summary
Fields Modifier and Type Field Description private booleanhasCobwebsprivate booleanhasRailsprivate booleanhasSpawnerprivate intlengthFields inherited from class net.minecraft.structure.MineshaftGenerator.MineshaftPart
mineshaftTypeFields inherited from class net.minecraft.structure.StructurePiece
AIR, boundingBox, chainLength -
Constructor Summary
Constructors Constructor Description MineshaftCorridor(int chainLength, Random random, BlockBox boundingBox, Direction orientation, MineshaftFeature.Type type)MineshaftCorridor(StructureManager structureManager, CompoundTag compoundTag) -
Method Summary
Modifier and Type Method Description protected booleanaddChest(StructureWorldAccess structureWorldAccess, BlockBox boundingBox, Random random, int x, int y, int z, Identifier lootTableId)private voidaddCobwebsUnderground(StructureWorldAccess structureWorldAccess, BlockBox boundingBox, Random random, float threshold, int x, int y, int z)voidfillOpenings(StructurePiece start, List<StructurePiece> pieces, Random random)booleangenerate(StructureWorldAccess structureWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)private voidgenerateSupports(StructureWorldAccess structureWorldAccess, BlockBox boundingBox, int minX, int minY, int z, int maxY, int maxX, Random random)static BlockBoxgetBoundingBox(List<StructurePiece> pieces, Random random, int x, int y, int z, Direction orientation)protected voidtoNbt(CompoundTag tag)Methods inherited from class net.minecraft.structure.MineshaftGenerator.MineshaftPart
getFenceType, getPlanksType, isSolidCeilingMethods inherited from class net.minecraft.structure.StructurePiece
addBlock, addBlockWithRandomThreshold, 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
-
hasRails
private final boolean hasRails -
hasCobwebs
private final boolean hasCobwebs -
hasSpawner
private boolean hasSpawner -
length
private final int length
-
-
Constructor Details
-
MineshaftCorridor
-
MineshaftCorridor
public MineshaftCorridor(int chainLength, Random random, BlockBox boundingBox, Direction orientation, MineshaftFeature.Type type)
-
-
Method Details
-
toNbt
- Overrides:
toNbtin classMineshaftGenerator.MineshaftPart
-
getBoundingBox
public static BlockBox getBoundingBox(List<StructurePiece> pieces, Random random, int x, int y, int z, Direction orientation) -
fillOpenings
- Overrides:
fillOpeningsin classStructurePiece
-
addChest
protected boolean addChest(StructureWorldAccess structureWorldAccess, BlockBox boundingBox, Random random, int x, int y, int z, Identifier lootTableId)- Overrides:
addChestin classStructurePiece
-
generate
public boolean generate(StructureWorldAccess structureWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)- Specified by:
generatein classStructurePiece
-
generateSupports
private void generateSupports(StructureWorldAccess structureWorldAccess, BlockBox boundingBox, int minX, int minY, int z, int maxY, int maxX, Random random) -
addCobwebsUnderground
private void addCobwebsUnderground(StructureWorldAccess structureWorldAccess, BlockBox boundingBox, Random random, float threshold, int x, int y, int z)
-