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 named net/minecraft/structure/MineshaftGenerator$MineshaftCorridorintermediary net/minecraft/class_3353$class_3354official eqn$a
-
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, Random random, BlockBox boundingBox, Direction orientation, MineshaftStructure.Type type) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanaddChest(StructureWorldAccess world, BlockBox boundingBox, Random random, int x, int y, int z, RegistryKey<LootTable> lootTable) private voidaddCobwebsUnderground(StructureWorldAccess world, BlockBox box, Random random, 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, Random random) protected voidfillSupportBeam(StructureWorldAccess world, BlockState state, int x, int y, int z, BlockBox box) private voidfillSupportBeam(StructureWorldAccess world, BlockBox box, int x, int y, int z) voidgenerate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) private voidgenerateSupports(StructureWorldAccess world, BlockBox boundingBox, int minX, int minY, int z, int maxY, int maxX, Random random) getBoundingBox(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation) private booleanhasSolidNeighborBlocks(StructureWorldAccess world, BlockBox box, int x, int y, int z, int count) private booleanisUpsideSolidFullSquare(WorldView world, BlockPos pos, BlockState state) private booleansideCoversSmallSquare(WorldView world, BlockPos pos, BlockState state) protected voidwriteNbt(StructureContext context, NbtCompound nbt) Methods inherited from class net.minecraft.structure.MineshaftGenerator.MineshaftPart
canAddBlock, cannotGenerate, isSolidCeiling, tryPlaceFloorMethods 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, offsetPos, orientateChest, setChainLength, setOrientation, toNbt, translate
-
Field Details
-
hasRails
private final boolean hasRails- Mappings:
Namespace Name Mixin selector named hasRailsLnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;hasRails:Zintermediary field_14416Lnet/minecraft/class_3353$class_3354;field_14416:Zofficial bLeqn$a;b:Z
-
hasCobwebs
private final boolean hasCobwebs- Mappings:
Namespace Name Mixin selector named hasCobwebsLnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;hasCobwebs:Zintermediary field_14415Lnet/minecraft/class_3353$class_3354;field_14415:Zofficial cLeqn$a;c:Z
-
hasSpawner
private boolean hasSpawner- Mappings:
Namespace Name Mixin selector named hasSpawnerLnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;hasSpawner:Zintermediary field_14414Lnet/minecraft/class_3353$class_3354;field_14414:Zofficial dLeqn$a;d:Z
-
length
private final int length- Mappings:
Namespace Name Mixin selector named lengthLnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;length:Iintermediary field_14413Lnet/minecraft/class_3353$class_3354;field_14413:Iofficial hLeqn$a;h:I
-
-
Constructor Details
-
MineshaftCorridor
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;<init>(Lnet/minecraft/nbt/NbtCompound;)Vintermediary <init>Lnet/minecraft/class_3353$class_3354;<init>(Lnet/minecraft/class_2487;)Vofficial <init>Leqn$a;<init>(Lux;)V
-
MineshaftCorridor
public MineshaftCorridor(int chainLength, Random random, BlockBox boundingBox, Direction orientation, MineshaftStructure.Type type) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;<init>(ILnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/util/math/Direction;Lnet/minecraft/world/gen/structure/MineshaftStructure$Type;)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;)Vofficial <init>Leqn$a;<init>(ILbam;Leob;Ljm;Leqo$a;)V
-
-
Method Details
-
writeNbt
- Overrides:
writeNbtin classMineshaftGenerator.MineshaftPart- Mappings:
Namespace Name Mixin selector named writeNbtLnet/minecraft/structure/StructurePiece;writeNbt(Lnet/minecraft/structure/StructureContext;Lnet/minecraft/nbt/NbtCompound;)Vintermediary method_14943Lnet/minecraft/class_3443;method_14943(Lnet/minecraft/class_6625;Lnet/minecraft/class_2487;)Vofficial aLeon;a(Leoz;Lux;)V
-
getBoundingBox
@Nullable public static @Nullable BlockBox getBoundingBox(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation) - Mappings:
Namespace Name Mixin selector named getBoundingBoxLnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;getBoundingBox(Lnet/minecraft/structure/StructurePiecesHolder;Lnet/minecraft/util/math/random/Random;IIILnet/minecraft/util/math/Direction;)Lnet/minecraft/util/math/BlockBox;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;official aLeqn$a;a(Leoo;Lbam;IIILjm;)Leob;
-
fillOpenings
- Overrides:
fillOpeningsin classStructurePiece- Mappings:
Namespace Name Mixin selector named fillOpeningsLnet/minecraft/structure/StructurePiece;fillOpenings(Lnet/minecraft/structure/StructurePiece;Lnet/minecraft/structure/StructurePiecesHolder;Lnet/minecraft/util/math/random/Random;)Vintermediary method_14918Lnet/minecraft/class_3443;method_14918(Lnet/minecraft/class_3443;Lnet/minecraft/class_6130;Lnet/minecraft/class_5819;)Vofficial aLeon;a(Leon;Leoo;Lbam;)V
-
addChest
protected boolean addChest(StructureWorldAccess world, BlockBox boundingBox, Random random, int x, int y, int z, RegistryKey<LootTable> lootTable) - Overrides:
addChestin classStructurePiece- Mappings:
Namespace Name Mixin selector named addChestLnet/minecraft/structure/StructurePiece;addChest(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/util/math/random/Random;IIILnet/minecraft/registry/RegistryKey;)Zintermediary method_14915Lnet/minecraft/class_3443;method_14915(Lnet/minecraft/class_5281;Lnet/minecraft/class_3341;Lnet/minecraft/class_5819;IIILnet/minecraft/class_5321;)Zofficial aLeon;a(Ldif;Leob;Lbam;IIILaly;)Z
-
generate
public void generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) - Specified by:
generatein classStructurePiece- Mappings:
Namespace Name Mixin selector named generateLnet/minecraft/structure/StructurePiece;generate(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/util/math/BlockPos;)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;)Vofficial aLeon;a(Ldif;Ldid;Ldzq;Lbam;Leob;Ldgn;Ljh;)V
-
fillSupportBeam
- Mappings:
Namespace Name Mixin selector named fillSupportBeamLnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;fillSupportBeam(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/util/math/BlockBox;III)Vintermediary method_33776Lnet/minecraft/class_3353$class_3354;method_33776(Lnet/minecraft/class_5281;Lnet/minecraft/class_3341;III)Vofficial aLeqn$a;a(Ldif;Leob;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 named fillDownwardsLnet/minecraft/structure/StructurePiece;fillDownwards(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/block/BlockState;IIILnet/minecraft/util/math/BlockBox;)Vintermediary method_14936Lnet/minecraft/class_3443;method_14936(Lnet/minecraft/class_5281;Lnet/minecraft/class_2680;IIILnet/minecraft/class_3341;)Vofficial bLeon;b(Ldif;Ldxu;IIILeob;)V
-
fillSupportBeam
protected void fillSupportBeam(StructureWorldAccess world, BlockState state, int x, int y, int z, BlockBox box) - Mappings:
Namespace Name Mixin selector named fillSupportBeamLnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;fillSupportBeam(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/block/BlockState;IIILnet/minecraft/util/math/BlockBox;)Vintermediary method_33879Lnet/minecraft/class_3353$class_3354;method_33879(Lnet/minecraft/class_5281;Lnet/minecraft/class_2680;IIILnet/minecraft/class_3341;)Vofficial cLeqn$a;c(Ldif;Ldxu;IIILeob;)V
-
fillColumn
private static void fillColumn(StructureWorldAccess world, BlockState state, BlockPos.Mutable pos, int startY, int endY) - Mappings:
Namespace Name Mixin selector named fillColumnLnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;fillColumn(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos$Mutable;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)Vofficial aLeqn$a;a(Ldif;Ldxu;Ljh$a;II)V
-
isUpsideSolidFullSquare
- Mappings:
Namespace Name Mixin selector named isUpsideSolidFullSquareLnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;isUpsideSolidFullSquare(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Zintermediary method_33777Lnet/minecraft/class_3353$class_3354;method_33777(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Zofficial aLeqn$a;a(Ldhk;Ljh;Ldxu;)Z
-
sideCoversSmallSquare
- Mappings:
Namespace Name Mixin selector named sideCoversSmallSquareLnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;sideCoversSmallSquare(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Zintermediary method_33877Lnet/minecraft/class_3353$class_3354;method_33877(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Zofficial bLeqn$a;b(Ldhk;Ljh;Ldxu;)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 named generateSupportsLnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;generateSupports(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/util/math/BlockBox;IIIIILnet/minecraft/util/math/random/Random;)Vintermediary method_14713Lnet/minecraft/class_3353$class_3354;method_14713(Lnet/minecraft/class_5281;Lnet/minecraft/class_3341;IIIIILnet/minecraft/class_5819;)Vofficial aLeqn$a;a(Ldif;Leob;IIIIILbam;)V
-
addCobwebsUnderground
private void addCobwebsUnderground(StructureWorldAccess world, BlockBox box, Random random, float threshold, int x, int y, int z) - Mappings:
Namespace Name Mixin selector named addCobwebsUndergroundLnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;addCobwebsUnderground(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/util/math/random/Random;FIII)Vintermediary method_14715Lnet/minecraft/class_3353$class_3354;method_14715(Lnet/minecraft/class_5281;Lnet/minecraft/class_3341;Lnet/minecraft/class_5819;FIII)Vofficial aLeqn$a;a(Ldif;Leob;Lbam;FIII)V
-
hasSolidNeighborBlocks
private boolean hasSolidNeighborBlocks(StructureWorldAccess world, BlockBox box, int x, int y, int z, int count) - Mappings:
Namespace Name Mixin selector named hasSolidNeighborBlocksLnet/minecraft/structure/MineshaftGenerator$MineshaftCorridor;hasSolidNeighborBlocks(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/util/math/BlockBox;IIII)Zintermediary method_36422Lnet/minecraft/class_3353$class_3354;method_36422(Lnet/minecraft/class_5281;Lnet/minecraft/class_3341;IIII)Zofficial aLeqn$a;a(Ldif;Leob;IIII)Z
-