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
- Mappings:
Namespace Name official cwu$aintermediary net/minecraft/class_3353$class_3354named net/minecraft/structure/MineshaftGenerator$MineshaftCorridor
-
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 intlengthFields inherited from class net.minecraft.structure.MineshaftGenerator.MineshaftPart
mineshaftTypeFields inherited from class net.minecraft.structure.StructurePiece
AIR, boundingBox, chainLength -
Constructor Summary
Constructors Constructor Description MineshaftCorridor(int chainLength, Random random, BlockBox boundingBox, Direction orientation, MineshaftFeature.Type type)MineshaftCorridor(StructureManager structureManager, CompoundTag nbt) -
Method Summary
Modifier and Type Method Description protected booleanaddChest(StructureWorldAccess world, BlockBox boundingBox, Random random, int x, int y, int z, Identifier lootTableId)private voidaddCobwebsUnderground(StructureWorldAccess world, BlockBox boundingBox, Random random, float threshold, int x, int y, int z)voidfillOpenings(StructurePiece start, List<StructurePiece> pieces, Random random)booleangenerate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos pos)private voidgenerateSupports(StructureWorldAccess world, BlockBox boundingBox, int minX, int minY, int z, int maxY, int maxX, Random random)static BlockBoxgetBoundingBox(List<StructurePiece> pieces, Random random, int x, int y, int z, Direction orientation)protected voidtoNbt(CompoundTag tag)Methods inherited from class net.minecraft.structure.MineshaftGenerator.MineshaftPart
getFenceType, getPlanksType, isSolidCeilingMethods inherited from class net.minecraft.structure.StructurePiece
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
-
Field Details
-
hasRails
private final boolean hasRails- Mappings:
Namespace Name Mixin selector official bLcwu$a;b:Zintermediary field_14416Lnet/minecraft/class_3353$class_3354;field_14416:Znamed hasRailsLnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;hasRails:Z
-
hasCobwebs
private final boolean hasCobwebs- Mappings:
Namespace Name Mixin selector official cLcwu$a;c:Zintermediary field_14415Lnet/minecraft/class_3353$class_3354;field_14415:Znamed hasCobwebsLnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;hasCobwebs:Z
-
hasSpawner
private boolean hasSpawner- Mappings:
Namespace Name Mixin selector official dLcwu$a;d:Zintermediary field_14414Lnet/minecraft/class_3353$class_3354;field_14414:Znamed hasSpawnerLnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;hasSpawner:Z
-
length
private final int length- Mappings:
Namespace Name Mixin selector official eLcwu$a;e:Iintermediary field_14413Lnet/minecraft/class_3353$class_3354;field_14413:Inamed lengthLnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;length:I
-
-
Constructor Details
-
MineshaftCorridor
- Mappings:
Namespace Name Mixin selector official <init>Lcwu$a;<init>(Lcyj;Lmq;)Vintermediary <init>Lnet/minecraft/class_3353$class_3354;<init>(Lnet/minecraft/class_3485;Lnet/minecraft/class_2487;)Vnamed <init>Lnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;<init>(Lnet/minecraft/structure/StructureManager;Lnet/minecraft/nbt/CompoundTag;)V
-
MineshaftCorridor
public MineshaftCorridor(int chainLength, Random random, BlockBox boundingBox, Direction orientation, MineshaftFeature.Type type)- Mappings:
Namespace Name Mixin selector official <init>Lcwu$a;<init>(ILjava/util/Random;Lcwn;Lgc;Lcpk$b;)Vintermediary <init>Lnet/minecraft/class_3353$class_3354;<init>(ILjava/util/Random;Lnet/minecraft/class_3341;Lnet/minecraft/class_2350;Lnet/minecraft/class_3098$class_3100;)Vnamed <init>Lnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;<init>(ILjava/util/Random;Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/util/math/Direction;Lnet/minecraft/world/gen/feature/MineshaftFeature$Type;)V
-
-
Method Details
-
toNbt
- Overrides:
toNbtin classMineshaftGenerator.MineshaftPart- Mappings:
Namespace Name Mixin selector official aLcxh;a(Lmq;)Vintermediary method_14943Lnet/minecraft/class_3443;method_14943(Lnet/minecraft/class_2487;)Vnamed toNbtLnet/minecraft/structure/StructurePiece;toNbt(Lnet/minecraft/nbt/CompoundTag;)V
-
getBoundingBox
public static BlockBox getBoundingBox(List<StructurePiece> pieces, Random random, int x, int y, int z, Direction orientation)- Mappings:
Namespace Name Mixin selector official aLcwu$a;a(Ljava/util/List;Ljava/util/Random;IIILgc;)Lcwn;intermediary method_14714Lnet/minecraft/class_3353$class_3354;method_14714(Ljava/util/List;Ljava/util/Random;IIILnet/minecraft/class_2350;)Lnet/minecraft/class_3341;named getBoundingBoxLnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;getBoundingBox(Ljava/util/List;Ljava/util/Random;IIILnet/minecraft/util/math/Direction;)Lnet/minecraft/util/math/BlockBox;
-
fillOpenings
- Overrides:
fillOpeningsin classStructurePiece- Mappings:
Namespace Name Mixin selector official aLcxh;a(Lcxh;Ljava/util/List;Ljava/util/Random;)Vintermediary method_14918Lnet/minecraft/class_3443;method_14918(Lnet/minecraft/class_3443;Ljava/util/List;Ljava/util/Random;)Vnamed fillOpeningsLnet/minecraft/structure/StructurePiece;fillOpenings(Lnet/minecraft/structure/StructurePiece;Ljava/util/List;Ljava/util/Random;)V
-
addChest
protected boolean addChest(StructureWorldAccess world, BlockBox boundingBox, Random random, int x, int y, int z, Identifier lootTableId)- Overrides:
addChestin classStructurePiece- Mappings:
Namespace Name Mixin selector official aLcxh;a(Lbuq;Lcwn;Ljava/util/Random;IIILwb;)Zintermediary method_14915Lnet/minecraft/class_3443;method_14915(Lnet/minecraft/class_5281;Lnet/minecraft/class_3341;Ljava/util/Random;IIILnet/minecraft/class_2960;)Znamed addChestLnet/minecraft/structure/StructurePiece;addChest(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/util/math/BlockBox;Ljava/util/Random;IIILnet/minecraft/util/Identifier;)Z
-
generate
public boolean generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos pos)- Specified by:
generatein classStructurePiece- Mappings:
Namespace Name Mixin selector official aLcxh;a(Lbuq;Lbum;Lcjn;Ljava/util/Random;Lcwn;Lbta;Lfx;)Zintermediary method_14931Lnet/minecraft/class_3443;method_14931(Lnet/minecraft/class_5281;Lnet/minecraft/class_5138;Lnet/minecraft/class_2794;Ljava/util/Random;Lnet/minecraft/class_3341;Lnet/minecraft/class_1923;Lnet/minecraft/class_2338;)Znamed generateLnet/minecraft/structure/StructurePiece;generate(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Ljava/util/Random;Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/util/math/BlockPos;)Z
-
generateSupports
private void generateSupports(StructureWorldAccess world, BlockBox boundingBox, int minX, int minY, int z, int maxY, int maxX, Random random)- Mappings:
Namespace Name Mixin selector official aLcwu$a;a(Lbuq;Lcwn;IIIIILjava/util/Random;)Vintermediary method_14713Lnet/minecraft/class_3353$class_3354;method_14713(Lnet/minecraft/class_5281;Lnet/minecraft/class_3341;IIIIILjava/util/Random;)Vnamed generateSupportsLnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;generateSupports(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/util/math/BlockBox;IIIIILjava/util/Random;)V
-
addCobwebsUnderground
private void addCobwebsUnderground(StructureWorldAccess world, BlockBox boundingBox, Random random, float threshold, int x, int y, int z)- Mappings:
Namespace Name Mixin selector official aLcwu$a;a(Lbuq;Lcwn;Ljava/util/Random;FIII)Vintermediary method_14715Lnet/minecraft/class_3353$class_3354;method_14715(Lnet/minecraft/class_5281;Lnet/minecraft/class_3341;Ljava/util/Random;FIII)Vnamed addCobwebsUndergroundLnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;addCobwebsUnderground(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/util/math/BlockBox;Ljava/util/Random;FIII)V
-