Package net.minecraft.structure
Class MineshaftGenerator.MineshaftPart
java.lang.Object
net.minecraft.structure.StructurePiece
net.minecraft.structure.MineshaftGenerator.MineshaftPart
- Direct Known Subclasses:
MineshaftGenerator.MineshaftCorridor,MineshaftGenerator.MineshaftCrossing,MineshaftGenerator.MineshaftRoom,MineshaftGenerator.MineshaftStairs
- Enclosing class:
- MineshaftGenerator
abstract static class MineshaftGenerator.MineshaftPart extends StructurePiece
- Mappings:
Namespace Name official cxa$cintermediary net/minecraft/class_3353$class_3356named net/minecraft/structure/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 protected MineshaftFeature.TypemineshaftTypeFields inherited from class net.minecraft.structure.StructurePiece
AIR, boundingBox, chainLength -
Constructor Summary
Constructors Constructor Description MineshaftPart(StructurePieceType structurePieceType, int chainLength, MineshaftFeature.Type type)MineshaftPart(StructurePieceType type, CompoundTag tag) -
Method Summary
Modifier and Type Method Description protected booleancanAddBlock(WorldView world, int x, int y, int z, BlockBox box)protected booleancontainsLiquid(BlockView world, BlockBox box)private booleanisAir(BlockView world, BlockPos.Mutable pos, int x, int y, int z)Determines whether the block at the given coordinates is air.protected booleanisSolidCeiling(BlockView world, BlockBox boundingBox, int minX, int maxX, int y, int z)protected voidmethod_33880(StructureWorldAccess structureWorldAccess, BlockBox blockBox, BlockState blockState, int int2, int int3, int int4)protected voidwriteNbt(CompoundTag tag)Methods inherited from class net.minecraft.structure.StructurePiece
addBlock, addBlockWithRandomThreshold, addChest, addChest, addDispenser, applyXTransform, applyYTransform, applyZTransform, fill, fillDownwards, fillHalfEllipsoid, fillOpenings, fillWithOutline, fillWithOutline, fillWithOutlineUnderSeaLevel, generate, getBlockAt, getBoundingBox, getChainLength, getFacing, getOverlappingPiece, getRotation, getType, intersectsChunk, isUnderSeaLevel, method_33781, method_33881, method_33882, orientateChest, setOrientation, toNbt, translate
-
Field Details
-
mineshaftType
- Mappings:
Namespace Name Mixin selector official aLcxa$c;a:Lcpp$b;intermediary field_14421Lnet/minecraft/class_3353$class_3356;field_14421:Lnet/minecraft/class_3098$class_3100;named mineshaftTypeLnet/minecraft/structure/MineshaftGenerator$MineshaftPart;mineshaftType:Lnet/minecraft/world/gen/feature/MineshaftFeature$Type;
-
-
Constructor Details
-
MineshaftPart
public MineshaftPart(StructurePieceType structurePieceType, int chainLength, MineshaftFeature.Type type)- Mappings:
Namespace Name Mixin selector official <init>Lcxa$c;<init>(Lcqq;ILcpp$b;)Vintermediary <init>Lnet/minecraft/class_3353$class_3356;<init>(Lnet/minecraft/class_3773;ILnet/minecraft/class_3098$class_3100;)Vnamed <init>Lnet/minecraft/structure/MineshaftGenerator$MineshaftPart;<init>(Lnet/minecraft/structure/StructurePieceType;ILnet/minecraft/world/gen/feature/MineshaftFeature$Type;)V
-
MineshaftPart
- Mappings:
Namespace Name Mixin selector official <init>Lcxo;<init>(Lcqq;Lmq;)Vintermediary <init>Lnet/minecraft/class_3443;<init>(Lnet/minecraft/class_3773;Lnet/minecraft/class_2487;)Vnamed <init>Lnet/minecraft/structure/StructurePiece;<init>(Lnet/minecraft/structure/StructurePieceType;Lnet/minecraft/nbt/CompoundTag;)V
-
-
Method Details
-
canAddBlock
- Overrides:
canAddBlockin classStructurePiece- Mappings:
Namespace Name Mixin selector official aLcxo;a(Lbua;IIILcwt;)Zintermediary method_33780Lnet/minecraft/class_3443;method_33780(Lnet/minecraft/class_4538;IIILnet/minecraft/class_3341;)Znamed canAddBlockLnet/minecraft/structure/StructurePiece;canAddBlock(Lnet/minecraft/world/WorldView;IIILnet/minecraft/util/math/BlockBox;)Z
-
writeNbt
- Specified by:
writeNbtin classStructurePiece- Mappings:
Namespace Name Mixin selector official aLcxo;a(Lmq;)Vintermediary method_14943Lnet/minecraft/class_3443;method_14943(Lnet/minecraft/class_2487;)Vnamed writeNbtLnet/minecraft/structure/StructurePiece;writeNbt(Lnet/minecraft/nbt/CompoundTag;)V
-
isSolidCeiling
protected boolean isSolidCeiling(BlockView world, BlockBox boundingBox, int minX, int maxX, int y, int z)- Mappings:
Namespace Name Mixin selector official aLcxa$c;a(Lbtb;Lcwt;IIII)Zintermediary method_14719Lnet/minecraft/class_3353$class_3356;method_14719(Lnet/minecraft/class_1922;Lnet/minecraft/class_3341;IIII)Znamed isSolidCeilingLnet/minecraft/structure/MineshaftGenerator$MineshaftPart;isSolidCeiling(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockBox;IIII)Z
-
containsLiquid
- Mappings:
Namespace Name Mixin selector official aLcxa$c;a(Lbtb;Lcwt;)Zintermediary method_33778Lnet/minecraft/class_3353$class_3356;method_33778(Lnet/minecraft/class_1922;Lnet/minecraft/class_3341;)Znamed containsLiquidLnet/minecraft/structure/MineshaftGenerator$MineshaftPart;containsLiquid(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockBox;)Z
-
method_33880
protected void method_33880(StructureWorldAccess structureWorldAccess, BlockBox blockBox, BlockState blockState, int int2, int int3, int int4)- Mappings:
Namespace Name Mixin selector official aLcxa$c;a(Lbus;Lcwt;Lchv;III)Vintermediary method_33880Lnet/minecraft/class_3353$class_3356;method_33880(Lnet/minecraft/class_5281;Lnet/minecraft/class_3341;Lnet/minecraft/class_2680;III)Vnamed method_33880Lnet/minecraft/structure/MineshaftGenerator$MineshaftPart;method_33880(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/block/BlockState;III)V
-
isAir
Determines whether the block at the given coordinates is air.This method mutates the passed position by setting it based on the integer coordinates.
- Mappings:
Namespace Name Mixin selector official aLcxa$c;a(Lbtb;Lfx$a;III)Zintermediary method_33779Lnet/minecraft/class_3353$class_3356;method_33779(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338$class_2339;III)Znamed isAirLnet/minecraft/structure/MineshaftGenerator$MineshaftPart;isAir(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos$Mutable;III)Z
-