Package net.minecraft.structure
Class StrongholdGenerator.Piece
java.lang.Object
net.minecraft.structure.StructurePiece
net.minecraft.structure.StrongholdGenerator.Piece
- Direct Known Subclasses:
StrongholdGenerator.ChestCorridor,StrongholdGenerator.Corridor,StrongholdGenerator.FiveWayCrossing,StrongholdGenerator.Library,StrongholdGenerator.PortalRoom,StrongholdGenerator.PrisonHall,StrongholdGenerator.SmallCorridor,StrongholdGenerator.SpiralStaircase,StrongholdGenerator.SquareRoom,StrongholdGenerator.Stairs,StrongholdGenerator.Turn
- Enclosing class:
- StrongholdGenerator
abstract static class StrongholdGenerator.Piece extends StructurePiece
- Mappings:
Namespace Name official cxm$pintermediary net/minecraft/class_3421$class_3437named net/minecraft/structure/StrongholdGenerator$Piece
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStrongholdGenerator.Piece.EntranceTypeNested classes/interfaces inherited from class net.minecraft.structure.StructurePiece
StructurePiece.BlockRandomizer -
Field Summary
Fields Modifier and Type Field Description protected StrongholdGenerator.Piece.EntranceTypeentryDoorFields inherited from class net.minecraft.structure.StructurePiece
AIR, boundingBox, chainLength -
Constructor Summary
Constructors Modifier Constructor Description protectedPiece(StructurePieceType type, int length)Piece(StructurePieceType type, CompoundTag tag) -
Method Summary
Modifier and Type Method Description protected StructurePiecefillForwardOpening(StrongholdGenerator.Start start, List<StructurePiece> pieces, Random random, int leftRightOffset, int heightOffset)protected StructurePiecefillNWOpening(StrongholdGenerator.Start start, List<StructurePiece> pieces, Random random, int heightOffset, int leftRightOffset)protected StructurePiecefillSEOpening(StrongholdGenerator.Start start, List<StructurePiece> pieces, Random random, int heightOffset, int leftRightOffset)protected voidgenerateEntrance(StructureWorldAccess world, Random random, BlockBox boundingBox, StrongholdGenerator.Piece.EntranceType type, int x, int y, int z)protected StrongholdGenerator.Piece.EntranceTypegetRandomEntrance(Random random)protected static booleanisInBounds(BlockBox boundingBox)StructureWeightTypemethod_33882()protected voidwriteNbt(CompoundTag tag)Methods inherited from class net.minecraft.structure.StructurePiece
addBlock, addBlockWithRandomThreshold, addChest, addChest, addDispenser, applyXTransform, applyYTransform, applyZTransform, canAddBlock, fill, fillDownwards, fillHalfEllipsoid, fillOpenings, fillWithOutline, fillWithOutline, fillWithOutlineUnderSeaLevel, generate, getBlockAt, getBoundingBox, getChainLength, getFacing, getOverlappingPiece, getRotation, getType, intersectsChunk, isUnderSeaLevel, method_33781, method_33881, orientateChest, setOrientation, toNbt, translate
-
Field Details
-
entryDoor
- Mappings:
Namespace Name Mixin selector official dLcxm$p;d:Lcxm$p$a;intermediary field_15287Lnet/minecraft/class_3421$class_3437;field_15287:Lnet/minecraft/class_3421$class_3437$class_3438;named entryDoorLnet/minecraft/structure/StrongholdGenerator$Piece;entryDoor:Lnet/minecraft/structure/StrongholdGenerator$Piece$EntranceType;
-
-
Constructor Details
-
Piece
- Mappings:
Namespace Name Mixin selector official <init>Lcxo;<init>(Lcqq;I)Vintermediary <init>Lnet/minecraft/class_3443;<init>(Lnet/minecraft/class_3773;I)Vnamed <init>Lnet/minecraft/structure/StructurePiece;<init>(Lnet/minecraft/structure/StructurePieceType;I)V
-
Piece
- 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
-
method_33882
- Overrides:
method_33882in classStructurePiece- Mappings:
Namespace Name Mixin selector official method_33882Lcxm$p;method_33882()Lcpv;intermediary method_33882Lnet/minecraft/class_3421$class_3437;method_33882()Lnet/minecraft/class_5847;named method_33882Lnet/minecraft/structure/StrongholdGenerator$Piece;method_33882()Lnet/minecraft/world/gen/StructureWeightType;
-
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
-
generateEntrance
protected void generateEntrance(StructureWorldAccess world, Random random, BlockBox boundingBox, StrongholdGenerator.Piece.EntranceType type, int x, int y, int z)- Mappings:
Namespace Name Mixin selector official aLcxm$p;a(Lbus;Ljava/util/Random;Lcwt;Lcxm$p$a;III)Vintermediary method_14872Lnet/minecraft/class_3421$class_3437;method_14872(Lnet/minecraft/class_5281;Ljava/util/Random;Lnet/minecraft/class_3341;Lnet/minecraft/class_3421$class_3437$class_3438;III)Vnamed generateEntranceLnet/minecraft/structure/StrongholdGenerator$Piece;generateEntrance(Lnet/minecraft/world/StructureWorldAccess;Ljava/util/Random;Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/structure/StrongholdGenerator$Piece$EntranceType;III)V
-
getRandomEntrance
- Mappings:
Namespace Name Mixin selector official aLcxm$p;a(Ljava/util/Random;)Lcxm$p$a;intermediary method_14869Lnet/minecraft/class_3421$class_3437;method_14869(Ljava/util/Random;)Lnet/minecraft/class_3421$class_3437$class_3438;named getRandomEntranceLnet/minecraft/structure/StrongholdGenerator$Piece;getRandomEntrance(Ljava/util/Random;)Lnet/minecraft/structure/StrongholdGenerator$Piece$EntranceType;
-
fillForwardOpening
@Nullable protected StructurePiece fillForwardOpening(StrongholdGenerator.Start start, List<StructurePiece> pieces, Random random, int leftRightOffset, int heightOffset)- Mappings:
Namespace Name Mixin selector official aLcxm$p;a(Lcxm$m;Ljava/util/List;Ljava/util/Random;II)Lcxo;intermediary method_14874Lnet/minecraft/class_3421$class_3437;method_14874(Lnet/minecraft/class_3421$class_3434;Ljava/util/List;Ljava/util/Random;II)Lnet/minecraft/class_3443;named fillForwardOpeningLnet/minecraft/structure/StrongholdGenerator$Piece;fillForwardOpening(Lnet/minecraft/structure/StrongholdGenerator$Start;Ljava/util/List;Ljava/util/Random;II)Lnet/minecraft/structure/StructurePiece;
-
fillNWOpening
@Nullable protected StructurePiece fillNWOpening(StrongholdGenerator.Start start, List<StructurePiece> pieces, Random random, int heightOffset, int leftRightOffset)- Mappings:
Namespace Name Mixin selector official bLcxm$p;b(Lcxm$m;Ljava/util/List;Ljava/util/Random;II)Lcxo;intermediary method_14870Lnet/minecraft/class_3421$class_3437;method_14870(Lnet/minecraft/class_3421$class_3434;Ljava/util/List;Ljava/util/Random;II)Lnet/minecraft/class_3443;named fillNWOpeningLnet/minecraft/structure/StrongholdGenerator$Piece;fillNWOpening(Lnet/minecraft/structure/StrongholdGenerator$Start;Ljava/util/List;Ljava/util/Random;II)Lnet/minecraft/structure/StructurePiece;
-
fillSEOpening
@Nullable protected StructurePiece fillSEOpening(StrongholdGenerator.Start start, List<StructurePiece> pieces, Random random, int heightOffset, int leftRightOffset)- Mappings:
Namespace Name Mixin selector official cLcxm$p;c(Lcxm$m;Ljava/util/List;Ljava/util/Random;II)Lcxo;intermediary method_14873Lnet/minecraft/class_3421$class_3437;method_14873(Lnet/minecraft/class_3421$class_3434;Ljava/util/List;Ljava/util/Random;II)Lnet/minecraft/class_3443;named fillSEOpeningLnet/minecraft/structure/StrongholdGenerator$Piece;fillSEOpening(Lnet/minecraft/structure/StrongholdGenerator$Start;Ljava/util/List;Ljava/util/Random;II)Lnet/minecraft/structure/StructurePiece;
-
isInBounds
- Mappings:
Namespace Name Mixin selector official aLcxm$p;a(Lcwt;)Zintermediary method_14871Lnet/minecraft/class_3421$class_3437;method_14871(Lnet/minecraft/class_3341;)Znamed isInBoundsLnet/minecraft/structure/StrongholdGenerator$Piece;isInBounds(Lnet/minecraft/util/math/BlockBox;)Z
-