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 boolean
hasCobwebs
private boolean
hasRails
private boolean
hasSpawner
private int
length
Fields inherited from class net.minecraft.structure.MineshaftGenerator.MineshaftPart
mineshaftType
Fields 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 boolean
addChest(StructureWorldAccess structureWorldAccess, BlockBox boundingBox, Random random, int x, int y, int z, Identifier lootTableId)
private void
addCobwebsUnderground(StructureWorldAccess structureWorldAccess, BlockBox boundingBox, Random random, float threshold, int x, int y, int z)
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)
private void
generateSupports(StructureWorldAccess structureWorldAccess, BlockBox boundingBox, int minX, int minY, int z, int maxY, int maxX, Random random)
static BlockBox
getBoundingBox(List<StructurePiece> pieces, Random random, int x, int y, int z, Direction orientation)
protected void
toNbt(CompoundTag tag)
Methods inherited from class net.minecraft.structure.MineshaftGenerator.MineshaftPart
getFenceType, getPlanksType, isSolidCeiling
Methods 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:
toNbt
in classMineshaftGenerator.MineshaftPart
-
getBoundingBox
public static BlockBox getBoundingBox(List<StructurePiece> pieces, Random random, int x, int y, int z, Direction orientation) -
fillOpenings
- Overrides:
fillOpenings
in classStructurePiece
-
addChest
protected boolean addChest(StructureWorldAccess structureWorldAccess, BlockBox boundingBox, Random random, int x, int y, int z, Identifier lootTableId)- Overrides:
addChest
in classStructurePiece
-
generate
public boolean generate(StructureWorldAccess structureWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)- Specified by:
generate
in 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)
-