Package net.minecraft.structure
Class MineshaftGenerator.MineshaftCrossing
java.lang.Object
net.minecraft.structure.StructurePiece
net.minecraft.structure.MineshaftGenerator.MineshaftPart
net.minecraft.structure.MineshaftGenerator.MineshaftCrossing
- Enclosing class:
- MineshaftGenerator
public static class MineshaftGenerator.MineshaftCrossing extends MineshaftGenerator.MineshaftPart
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.structure.StructurePiece
StructurePiece.BlockRandomizer
-
Field Summary
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 MineshaftCrossing(int chainLength, BlockBox boundingBox, Direction orientation, MineshaftFeature.Type type)
MineshaftCrossing(StructureManager structureManager, CompoundTag compoundTag)
-
Method Summary
Modifier and Type Method Description 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
generateCrossingPilliar(StructureWorldAccess structureWorldAccess, BlockBox boundingBox, int x, int minY, int z, int maxY)
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, 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
-
direction
-
twoFloors
private final boolean twoFloors
-
-
Constructor Details
-
MineshaftCrossing
-
MineshaftCrossing
public MineshaftCrossing(int chainLength, BlockBox boundingBox, @Nullable 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
-
generate
public boolean generate(StructureWorldAccess structureWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)- Specified by:
generate
in classStructurePiece
-
generateCrossingPilliar
private void generateCrossingPilliar(StructureWorldAccess structureWorldAccess, BlockBox boundingBox, int x, int minY, int z, int maxY)
-