public static class MineshaftGenerator.MineshaftRoom extends MineshaftGenerator.MineshaftPart
StructurePiece.BlockRandomizer
Modifier and Type | Field and Description |
---|---|
private List<BlockBox> |
entrances |
mineshaftType
AIR, boundingBox, chainLength
Constructor and Description |
---|
MineshaftRoom(int chainLength,
Random random,
int x,
int z,
MineshaftFeature.Type type) |
MineshaftRoom(StructureManager structureManager,
CompoundTag compoundTag) |
Modifier and Type | Method and 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) |
protected void |
toNbt(CompoundTag tag) |
void |
translate(int x,
int y,
int z) |
getFenceType, getPlanksType, isSolidCeiling
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
public MineshaftRoom(int chainLength, Random random, int x, int z, MineshaftFeature.Type type)
public MineshaftRoom(StructureManager structureManager, CompoundTag compoundTag)
public void fillOpenings(StructurePiece start, List<StructurePiece> pieces, Random random)
fillOpenings
in class StructurePiece
public boolean generate(StructureWorldAccess structureWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)
generate
in class StructurePiece
public void translate(int x, int y, int z)
translate
in class StructurePiece
protected void toNbt(CompoundTag tag)
toNbt
in class MineshaftGenerator.MineshaftPart