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
- Mappings:
Namespace Name official djn$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
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final booleanprivate booleanprivate final intFields inherited from class net.minecraft.structure.MineshaftGenerator.MineshaftPart
mineshaftTypeFields inherited from class net.minecraft.structure.StructurePiece
AIR, boundingBox, chainLength -
Constructor Summary
ConstructorsConstructorDescriptionMineshaftCorridor(int chainLength, AbstractRandom abstractRandom, BlockBox boundingBox, Direction orientation, MineshaftFeature.Type type) MineshaftCorridor(NbtCompound nbtCompound) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanaddChest(StructureWorldAccess world, BlockBox boundingBox, AbstractRandom abstractRandom, int x, int y, int z, Identifier lootTableId) private voidaddCobwebsUnderground(StructureWorldAccess world, BlockBox box, AbstractRandom abstractRandom, float threshold, int x, int y, int z) private static voidfillColumn(StructureWorldAccess world, BlockState state, BlockPos.Mutable pos, int startY, int endY) protected voidfillDownwards(StructureWorldAccess world, BlockState state, int x, int y, int z, BlockBox box) voidfillOpenings(StructurePiece start, StructurePiecesHolder holder, AbstractRandom abstractRandom) private voidfillSupportBeam(StructureWorldAccess world, BlockBox box, int x, int y, int z) voidgenerate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, AbstractRandom abstractRandom, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pos) private voidgenerateSupports(StructureWorldAccess world, BlockBox boundingBox, int minX, int minY, int z, int maxY, int maxX, AbstractRandom abstractRandom) getBoundingBox(StructurePiecesHolder structurePiecesHolder, AbstractRandom abstractRandom, int x, int y, int z, Direction orientation) private booleanisNotRailOrLava(WorldView worldView, BlockPos blockPos, BlockState blockState) protected voidmethod_33879(StructureWorldAccess world, BlockState state, int x, int y, int z, BlockBox box) private booleanmethod_36422(StructureWorldAccess world, BlockBox box, int x, int y, int z, int count) private booleansideCoversSmallSquare(WorldView world, BlockPos pos, BlockState state) protected voidwriteNbt(StructureContext context, NbtCompound nbt) Methods inherited from class net.minecraft.structure.MineshaftGenerator.MineshaftPart
canAddBlock, isSolidCeiling, method_33880, method_33999Methods inherited from class net.minecraft.structure.StructurePiece
addBlock, addBlockWithRandomThreshold, addChest, addDispenser, applyXTransform, applyYTransform, applyZTransform, boundingBox, canReplace, createBox, fill, fillHalfEllipsoid, fillWithOutline, fillWithOutline, fillWithOutline, fillWithOutline, fillWithOutlineUnderSeaLevel, firstIntersecting, getBlockAt, getBoundingBox, getCenter, getChainLength, getFacing, getMirror, getRandomHorizontalDirection, getRotation, getType, intersectsChunk, isUnderSeaLevel, method_41620, offsetPos, orientateChest, setOrientation, toNbt, translate
-
Field Details
-
hasRails
private final boolean hasRails- Mappings:
Namespace Name Mixin selector official bLdjn$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 cLdjn$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 dLdjn$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 hLdjn$a;h:Iintermediary field_14413Lnet/minecraft/class_3353$class_3354;field_14413:Inamed lengthLnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;length:I
-
-
Constructor Details
-
MineshaftCorridor
-
MineshaftCorridor
public MineshaftCorridor(int chainLength, AbstractRandom abstractRandom, BlockBox boundingBox, Direction orientation, MineshaftFeature.Type type) - Mappings:
Namespace Name Mixin selector official <init>Ldjn$a;<init>(ILaki;Ldhj;Lgr;Ldjo$a;)Vintermediary <init>Lnet/minecraft/class_3353$class_3354;<init>(ILnet/minecraft/class_5819;Lnet/minecraft/class_3341;Lnet/minecraft/class_2350;Lnet/minecraft/class_3098$class_3100;)Vnamed <init>Lnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;<init>(ILnet/minecraft/world/gen/random/AbstractRandom;Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/util/math/Direction;Lnet/minecraft/world/gen/feature/MineshaftFeature$Type;)V
-
-
Method Details
-
writeNbt
- Overrides:
writeNbtin classMineshaftGenerator.MineshaftPart- Mappings:
Namespace Name Mixin selector official aLdhv;a(Ldih;Lox;)Vintermediary method_14943Lnet/minecraft/class_3443;method_14943(Lnet/minecraft/class_6625;Lnet/minecraft/class_2487;)Vnamed writeNbtLnet/minecraft/structure/StructurePiece;writeNbt(Lnet/minecraft/structure/StructureContext;Lnet/minecraft/nbt/NbtCompound;)V
-
getBoundingBox
@Nullable public static @Nullable BlockBox getBoundingBox(StructurePiecesHolder structurePiecesHolder, AbstractRandom abstractRandom, int x, int y, int z, Direction orientation) - Mappings:
Namespace Name Mixin selector official aLdjn$a;a(Ldhw;Laki;IIILgr;)Ldhj;intermediary method_14714Lnet/minecraft/class_3353$class_3354;method_14714(Lnet/minecraft/class_6130;Lnet/minecraft/class_5819;IIILnet/minecraft/class_2350;)Lnet/minecraft/class_3341;named getBoundingBoxLnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;getBoundingBox(Lnet/minecraft/structure/StructurePiecesHolder;Lnet/minecraft/world/gen/random/AbstractRandom;IIILnet/minecraft/util/math/Direction;)Lnet/minecraft/util/math/BlockBox;
-
fillOpenings
public void fillOpenings(StructurePiece start, StructurePiecesHolder holder, AbstractRandom abstractRandom) - Overrides:
fillOpeningsin classStructurePiece- Mappings:
Namespace Name Mixin selector official aLdhv;a(Ldhv;Ldhw;Laki;)Vintermediary method_14918Lnet/minecraft/class_3443;method_14918(Lnet/minecraft/class_3443;Lnet/minecraft/class_6130;Lnet/minecraft/class_5819;)Vnamed fillOpeningsLnet/minecraft/structure/StructurePiece;fillOpenings(Lnet/minecraft/structure/StructurePiece;Lnet/minecraft/structure/StructurePiecesHolder;Lnet/minecraft/world/gen/random/AbstractRandom;)V
-
addChest
protected boolean addChest(StructureWorldAccess world, BlockBox boundingBox, AbstractRandom abstractRandom, int x, int y, int z, Identifier lootTableId) - Overrides:
addChestin classStructurePiece- Mappings:
Namespace Name Mixin selector official aLdhv;a(Lcek;Ldhj;Laki;IIILze;)Zintermediary method_14915Lnet/minecraft/class_3443;method_14915(Lnet/minecraft/class_5281;Lnet/minecraft/class_3341;Lnet/minecraft/class_5819;IIILnet/minecraft/class_2960;)Znamed addChestLnet/minecraft/structure/StructurePiece;addChest(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/world/gen/random/AbstractRandom;IIILnet/minecraft/util/Identifier;)Z
-
generate
public void generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, AbstractRandom abstractRandom, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pos) - Specified by:
generatein classStructurePiece- Mappings:
Namespace Name Mixin selector official aLdhv;a(Lcek;Lcej;Lcuc;Laki;Ldhj;Lccz;Lgm;)Vintermediary method_14931Lnet/minecraft/class_3443;method_14931(Lnet/minecraft/class_5281;Lnet/minecraft/class_5138;Lnet/minecraft/class_2794;Lnet/minecraft/class_5819;Lnet/minecraft/class_3341;Lnet/minecraft/class_1923;Lnet/minecraft/class_2338;)Vnamed generateLnet/minecraft/structure/StructurePiece;generate(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Lnet/minecraft/world/gen/random/AbstractRandom;Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/util/math/BlockPos;)V
-
fillSupportBeam
- Mappings:
Namespace Name Mixin selector official aLdjn$a;a(Lcek;Ldhj;III)Vintermediary method_33776Lnet/minecraft/class_3353$class_3354;method_33776(Lnet/minecraft/class_5281;Lnet/minecraft/class_3341;III)Vnamed fillSupportBeamLnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;fillSupportBeam(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/util/math/BlockBox;III)V
-
fillDownwards
protected void fillDownwards(StructureWorldAccess world, BlockState state, int x, int y, int z, BlockBox box) - Overrides:
fillDownwardsin classStructurePiece- Mappings:
Namespace Name Mixin selector official bLdhv;b(Lcek;Lcsg;IIILdhj;)Vintermediary method_14936Lnet/minecraft/class_3443;method_14936(Lnet/minecraft/class_5281;Lnet/minecraft/class_2680;IIILnet/minecraft/class_3341;)Vnamed fillDownwardsLnet/minecraft/structure/StructurePiece;fillDownwards(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/block/BlockState;IIILnet/minecraft/util/math/BlockBox;)V
-
method_33879
protected void method_33879(StructureWorldAccess world, BlockState state, int x, int y, int z, BlockBox box) - Mappings:
Namespace Name Mixin selector official cLdjn$a;c(Lcek;Lcsg;IIILdhj;)Vintermediary method_33879Lnet/minecraft/class_3353$class_3354;method_33879(Lnet/minecraft/class_5281;Lnet/minecraft/class_2680;IIILnet/minecraft/class_3341;)Vnamed method_33879Lnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;method_33879(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/block/BlockState;IIILnet/minecraft/util/math/BlockBox;)V
-
fillColumn
private static void fillColumn(StructureWorldAccess world, BlockState state, BlockPos.Mutable pos, int startY, int endY) - Mappings:
Namespace Name Mixin selector official aLdjn$a;a(Lcek;Lcsg;Lgm$a;II)Vintermediary method_33878Lnet/minecraft/class_3353$class_3354;method_33878(Lnet/minecraft/class_5281;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338$class_2339;II)Vnamed fillColumnLnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;fillColumn(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos$Mutable;II)V
-
isNotRailOrLava
- Mappings:
Namespace Name Mixin selector official aLdjn$a;a(Lcdv;Lgm;Lcsg;)Zintermediary method_33777Lnet/minecraft/class_3353$class_3354;method_33777(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Znamed isNotRailOrLavaLnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;isNotRailOrLava(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
-
sideCoversSmallSquare
- Mappings:
Namespace Name Mixin selector official bLdjn$a;b(Lcdv;Lgm;Lcsg;)Zintermediary method_33877Lnet/minecraft/class_3353$class_3354;method_33877(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Znamed sideCoversSmallSquareLnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;sideCoversSmallSquare(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
-
generateSupports
private void generateSupports(StructureWorldAccess world, BlockBox boundingBox, int minX, int minY, int z, int maxY, int maxX, AbstractRandom abstractRandom) - Mappings:
Namespace Name Mixin selector official aLdjn$a;a(Lcek;Ldhj;IIIIILaki;)Vintermediary method_14713Lnet/minecraft/class_3353$class_3354;method_14713(Lnet/minecraft/class_5281;Lnet/minecraft/class_3341;IIIIILnet/minecraft/class_5819;)Vnamed generateSupportsLnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;generateSupports(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/util/math/BlockBox;IIIIILnet/minecraft/world/gen/random/AbstractRandom;)V
-
addCobwebsUnderground
private void addCobwebsUnderground(StructureWorldAccess world, BlockBox box, AbstractRandom abstractRandom, float threshold, int x, int y, int z) - Mappings:
Namespace Name Mixin selector official aLdjn$a;a(Lcek;Ldhj;Laki;FIII)Vintermediary method_14715Lnet/minecraft/class_3353$class_3354;method_14715(Lnet/minecraft/class_5281;Lnet/minecraft/class_3341;Lnet/minecraft/class_5819;FIII)Vnamed addCobwebsUndergroundLnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;addCobwebsUnderground(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/world/gen/random/AbstractRandom;FIII)V
-
method_36422
private boolean method_36422(StructureWorldAccess world, BlockBox box, int x, int y, int z, int count) - Mappings:
Namespace Name Mixin selector official aLdjn$a;a(Lcek;Ldhj;IIII)Zintermediary method_36422Lnet/minecraft/class_3353$class_3354;method_36422(Lnet/minecraft/class_5281;Lnet/minecraft/class_3341;IIII)Znamed method_36422Lnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;method_36422(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/util/math/BlockBox;IIII)Z
-