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 |
mineshaftTypeAIR, boundingBox| Constructor and Description |
|---|
MineshaftCorridor(int int2,
Random random,
BlockBox blockBox,
Direction direction,
MineshaftFeature.Type type) |
MineshaftCorridor(StructureManager structureManager,
CompoundTag compoundTag) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addChest(WorldAccess world,
BlockBox boundingBox,
Random random,
int x,
int y,
int z,
Identifier lootTableId) |
boolean |
generate(ServerWorldAccess serverWorldAccess,
StructureAccessor structureAccessor,
ChunkGenerator chunkGenerator,
Random random,
BlockBox boundingBox,
ChunkPos chunkPos,
BlockPos blockPos) |
static BlockBox |
getBoundingBox(List<StructurePiece> list,
Random random,
int int2,
int int3,
int int4,
Direction direction) |
private void |
method_14713(WorldAccess worldAccess,
BlockBox blockBox,
int int2,
int int3,
int int4,
int int5,
int int6,
Random random) |
private void |
method_14715(WorldAccess worldAccess,
BlockBox blockBox,
Random random,
float float2,
int int2,
int int3,
int int4) |
void |
placeJigsaw(StructurePiece structurePiece,
List<StructurePiece> list,
Random random) |
protected void |
toNbt(CompoundTag tag) |
getFenceType, getPlanksType, method_14719addBlock, addBlockWithRandomThreshold, addChest, addDispenser, applyXTransform, applyYTransform, applyZTransform, fill, fillWithOutline, fillWithOutline, fillWithOutlineUnderSeaLevel, getBlockAt, getBoundingBox, getFacing, getLength, getOverlappingPiece, getRotation, getTag, getType, intersectsChunk, isUnderSeaLevel, method_14916, method_14919, method_14936, method_14937, setOrientation, translateprivate final boolean hasRails
private final boolean hasCobwebs
private boolean hasSpawner
private final int length
public MineshaftCorridor(StructureManager structureManager, CompoundTag compoundTag)
public MineshaftCorridor(int int2,
Random random,
BlockBox blockBox,
Direction direction,
MineshaftFeature.Type type)
protected void toNbt(CompoundTag tag)
toNbt in class MineshaftGenerator.MineshaftPartpublic static BlockBox getBoundingBox(List<StructurePiece> list, Random random, int int2, int int3, int int4, Direction direction)
public void placeJigsaw(StructurePiece structurePiece, List<StructurePiece> list, Random random)
placeJigsaw in class StructurePieceprotected boolean addChest(WorldAccess world, BlockBox boundingBox, Random random, int x, int y, int z, Identifier lootTableId)
addChest in class StructurePiecepublic boolean generate(ServerWorldAccess serverWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)
generate in class StructurePieceprivate void method_14713(WorldAccess worldAccess, BlockBox blockBox, int int2, int int3, int int4, int int5, int int6, Random random)
private void method_14715(WorldAccess worldAccess, BlockBox blockBox, Random random, float float2, int int2, int int3, int int4)