public static class StrongholdGenerator.Corridor extends StrongholdGenerator.Piece
StrongholdGenerator.Piece.EntranceType
StructurePiece.BlockRandomizer
Modifier and Type | Field and Description |
---|---|
private boolean |
leftExitExists |
private boolean |
rightExitExixts |
entryDoor
AIR, boundingBox, length
Constructor and Description |
---|
Corridor(int int2,
Random random,
BlockBox blockBox,
Direction direction) |
Corridor(StructureManager structureManager,
CompoundTag compoundTag) |
Modifier and Type | Method and Description |
---|---|
boolean |
generate(IWorld world,
StructureAccessor structureAccessor,
ChunkGenerator<?> chunkGenerator,
Random random,
BlockBox boundingBox,
ChunkPos chunkPos,
BlockPos blockPos) |
static StrongholdGenerator.Corridor |
method_14867(List<StructurePiece> list,
Random random,
int int2,
int int3,
int int4,
Direction direction,
int int5) |
void |
placeJigsaw(StructurePiece structurePiece,
List<StructurePiece> list,
Random random) |
protected void |
toNbt(CompoundTag tag) |
generateEntrance, getRandomEntrance, method_14870, method_14871, method_14873, method_14874
addBlock, addBlockWithRandomThreshold, addChest, 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, translate
private final boolean leftExitExists
private final boolean rightExitExixts
public Corridor(StructureManager structureManager, CompoundTag compoundTag)
protected void toNbt(CompoundTag tag)
toNbt
in class StrongholdGenerator.Piece
public void placeJigsaw(StructurePiece structurePiece, List<StructurePiece> list, Random random)
placeJigsaw
in class StructurePiece
public static StrongholdGenerator.Corridor method_14867(List<StructurePiece> list, Random random, int int2, int int3, int int4, Direction direction, int int5)
public boolean generate(IWorld world, StructureAccessor structureAccessor, ChunkGenerator<?> chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)
generate
in class StructurePiece