public static class MineshaftGenerator.MineshaftCorridor extends MineshaftGenerator.MineshaftPart
StructurePiece.BlockRandomizer
Modifier and Type | Field and Description |
---|---|
private boolean |
hasCobwebs |
private boolean |
hasRails |
private boolean |
hasSpawner |
private int |
length |
mineshaftType
AIR, boundingBox, chainLength
Constructor and Description |
---|
MineshaftCorridor(int chainLength,
Random random,
BlockBox boundingBox,
Direction orientation,
MineshaftFeature.Type type) |
MineshaftCorridor(StructureManager structureManager,
CompoundTag compoundTag) |
Modifier and Type | Method and 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) |
getFenceType, getPlanksType, isSolidCeiling
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
private final boolean hasRails
private final boolean hasCobwebs
private boolean hasSpawner
private final int length
public MineshaftCorridor(StructureManager structureManager, CompoundTag compoundTag)
public MineshaftCorridor(int chainLength, Random random, BlockBox boundingBox, Direction orientation, MineshaftFeature.Type type)
protected void toNbt(CompoundTag tag)
toNbt
in class MineshaftGenerator.MineshaftPart
public static BlockBox getBoundingBox(List<StructurePiece> pieces, Random random, int x, int y, int z, Direction orientation)
public void fillOpenings(StructurePiece start, List<StructurePiece> pieces, Random random)
fillOpenings
in class StructurePiece
protected boolean addChest(StructureWorldAccess structureWorldAccess, BlockBox boundingBox, Random random, int x, int y, int z, Identifier lootTableId)
addChest
in class StructurePiece
public boolean generate(StructureWorldAccess structureWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)
generate
in class StructurePiece
private void generateSupports(StructureWorldAccess structureWorldAccess, BlockBox boundingBox, int minX, int minY, int z, int maxY, int maxX, Random random)
private void addCobwebsUnderground(StructureWorldAccess structureWorldAccess, BlockBox boundingBox, Random random, float threshold, int x, int y, int z)