Package net.minecraft.structure
Class MineshaftGenerator.MineshaftCorridor
java.lang.Object
net.minecraft.structure.StructurePiece
net.minecraft.structure.MineshaftGenerator.MineshaftPart
net.minecraft.structure.MineshaftGenerator.MineshaftCorridor
- Enclosing class:
- MineshaftGenerator
public static class MineshaftGenerator.MineshaftCorridor extends MineshaftGenerator.MineshaftPart
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.structure.StructurePiece
StructurePiece.BlockRandomizer -
Field Summary
Fields Modifier and Type Field Description private booleanhasCobwebsprivate booleanhasRailsprivate booleanhasSpawnerprivate intlength -
Constructor Summary
Constructors Constructor Description MineshaftCorridor(int int2, Random random, BlockBox blockBox, Direction direction, MineshaftFeature.Type type)MineshaftCorridor(StructureManager structureManager, CompoundTag compoundTag) -
Method Summary
Modifier and Type Method Description protected booleanaddChest(WorldAccess world, BlockBox boundingBox, Random random, int x, int y, int z, Identifier lootTableId)booleangenerate(ServerWorldAccess serverWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)static BlockBoxgetBoundingBox(List<StructurePiece> list, Random random, int int2, int int3, int int4, Direction direction)private voidmethod_14713(WorldAccess worldAccess, BlockBox blockBox, int int2, int int3, int int4, int int5, int int6, Random random)private voidmethod_14715(WorldAccess worldAccess, BlockBox blockBox, Random random, float float2, int int2, int int3, int int4)voidplaceJigsaw(StructurePiece structurePiece, List<StructurePiece> list, Random random)protected voidtoNbt(CompoundTag tag)Methods inherited from class net.minecraft.structure.MineshaftGenerator.MineshaftPart
getFenceType, getPlanksType, method_14719Methods inherited from class net.minecraft.structure.StructurePiece
addBlock, 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, translate
-
Field Details
-
hasRails
private final boolean hasRails -
hasCobwebs
private final boolean hasCobwebs -
hasSpawner
private boolean hasSpawner -
length
private final int length
-
-
Constructor Details
-
MineshaftCorridor
-
MineshaftCorridor
public MineshaftCorridor(int int2, Random random, BlockBox blockBox, Direction direction, MineshaftFeature.Type type)
-
-
Method Details
-
toNbt
- Overrides:
toNbtin classMineshaftGenerator.MineshaftPart
-
getBoundingBox
public static BlockBox getBoundingBox(List<StructurePiece> list, Random random, int int2, int int3, int int4, Direction direction) -
placeJigsaw
- Overrides:
placeJigsawin classStructurePiece
-
addChest
protected boolean addChest(WorldAccess world, BlockBox boundingBox, Random random, int x, int y, int z, Identifier lootTableId)- Overrides:
addChestin classStructurePiece
-
generate
public boolean generate(ServerWorldAccess serverWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)- Specified by:
generatein classStructurePiece
-
method_14713
private void method_14713(WorldAccess worldAccess, BlockBox blockBox, int int2, int int3, int int4, int int5, int int6, Random random) -
method_14715
private void method_14715(WorldAccess worldAccess, BlockBox blockBox, Random random, float float2, int int2, int int3, int int4)
-