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
- Mappings:
Namespace Name intermediary net/minecraft/class_3421$class_3437official duh$pnamed net/minecraft/structure/StrongholdGenerator$Piece
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.structure.StructurePiece
StructurePiece.BlockRandomizer -
Field Summary
FieldsFields inherited from class net.minecraft.structure.StructurePiece
AIR, boundingBox, chainLength -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPiece(StructurePieceType type, int length, BlockBox boundingBox) Piece(StructurePieceType type, NbtCompound nbt) -
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable StructurePiecefillForwardOpening(StrongholdGenerator.Start start, StructurePiecesHolder holder, Random random, int leftRightOffset, int heightOffset) protected @Nullable StructurePiecefillNWOpening(StrongholdGenerator.Start start, StructurePiecesHolder holder, Random random, int heightOffset, int leftRightOffset) protected @Nullable StructurePiecefillSEOpening(StrongholdGenerator.Start start, StructurePiecesHolder holder, 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) protected voidwriteNbt(StructureContext context, NbtCompound nbt) Methods inherited from class net.minecraft.structure.StructurePiece
addBlock, addBlockWithRandomThreshold, addChest, addChest, addDispenser, applyXTransform, applyYTransform, applyZTransform, boundingBox, canAddBlock, canReplace, createBox, fill, fillDownwards, fillHalfEllipsoid, fillOpenings, fillWithOutline, fillWithOutline, fillWithOutline, fillWithOutline, fillWithOutlineUnderSeaLevel, firstIntersecting, generate, getBlockAt, getBoundingBox, getCenter, getChainLength, getFacing, getMirror, getRandomHorizontalDirection, getRotation, getType, intersectsChunk, isUnderSeaLevel, offsetPos, orientateChest, setChainLength, setOrientation, toNbt, translate
-
Field Details
-
entryDoor
- Mappings:
Namespace Name Mixin selector intermediary field_15287Lnet/minecraft/class_3421$class_3437;field_15287:Lnet/minecraft/class_3421$class_3437$class_3438;official hLduh$p;h:Lduh$p$a;named entryDoorLnet/minecraft/structure/StrongholdGenerator$Piece;entryDoor:Lnet/minecraft/structure/StrongholdGenerator$Piece$EntranceType;
-
-
Constructor Details
-
Piece
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_3443;<init>(Lnet/minecraft/class_3773;ILnet/minecraft/class_3341;)Vofficial <init>Ldsb;<init>(Ldso;ILdrp;)Vnamed <init>Lnet/minecraft/structure/StructurePiece;<init>(Lnet/minecraft/structure/StructurePieceType;ILnet/minecraft/util/math/BlockBox;)V
-
Piece
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_3443;<init>(Lnet/minecraft/class_3773;Lnet/minecraft/class_2487;)Vofficial <init>Ldsb;<init>(Ldso;Lqr;)Vnamed <init>Lnet/minecraft/structure/StructurePiece;<init>(Lnet/minecraft/structure/StructurePieceType;Lnet/minecraft/nbt/NbtCompound;)V
-
-
Method Details
-
writeNbt
- Specified by:
writeNbtin classStructurePiece- Mappings:
Namespace Name Mixin selector intermediary method_14943Lnet/minecraft/class_3443;method_14943(Lnet/minecraft/class_6625;Lnet/minecraft/class_2487;)Vofficial aLdsb;a(Ldsn;Lqr;)Vnamed writeNbtLnet/minecraft/structure/StructurePiece;writeNbt(Lnet/minecraft/structure/StructureContext;Lnet/minecraft/nbt/NbtCompound;)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 intermediary method_14872Lnet/minecraft/class_3421$class_3437;method_14872(Lnet/minecraft/class_5281;Lnet/minecraft/class_5819;Lnet/minecraft/class_3341;Lnet/minecraft/class_3421$class_3437$class_3438;III)Vofficial aLduh$p;a(Lcne;Lapf;Ldrp;Lduh$p$a;III)Vnamed generateEntranceLnet/minecraft/structure/StrongholdGenerator$Piece;generateEntrance(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/structure/StrongholdGenerator$Piece$EntranceType;III)V
-
getRandomEntrance
- Mappings:
Namespace Name Mixin selector intermediary method_14869Lnet/minecraft/class_3421$class_3437;method_14869(Lnet/minecraft/class_5819;)Lnet/minecraft/class_3421$class_3437$class_3438;official bLduh$p;b(Lapf;)Lduh$p$a;named getRandomEntranceLnet/minecraft/structure/StrongholdGenerator$Piece;getRandomEntrance(Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/structure/StrongholdGenerator$Piece$EntranceType;
-
fillForwardOpening
@Nullable protected @Nullable StructurePiece fillForwardOpening(StrongholdGenerator.Start start, StructurePiecesHolder holder, Random random, int leftRightOffset, int heightOffset) - Mappings:
Namespace Name Mixin selector intermediary method_14874Lnet/minecraft/class_3421$class_3437;method_14874(Lnet/minecraft/class_3421$class_3434;Lnet/minecraft/class_6130;Lnet/minecraft/class_5819;II)Lnet/minecraft/class_3443;official aLduh$p;a(Lduh$m;Ldsc;Lapf;II)Ldsb;named fillForwardOpeningLnet/minecraft/structure/StrongholdGenerator$Piece;fillForwardOpening(Lnet/minecraft/structure/StrongholdGenerator$Start;Lnet/minecraft/structure/StructurePiecesHolder;Lnet/minecraft/util/math/random/Random;II)Lnet/minecraft/structure/StructurePiece;
-
fillNWOpening
@Nullable protected @Nullable StructurePiece fillNWOpening(StrongholdGenerator.Start start, StructurePiecesHolder holder, Random random, int heightOffset, int leftRightOffset) - Mappings:
Namespace Name Mixin selector intermediary method_14870Lnet/minecraft/class_3421$class_3437;method_14870(Lnet/minecraft/class_3421$class_3434;Lnet/minecraft/class_6130;Lnet/minecraft/class_5819;II)Lnet/minecraft/class_3443;official bLduh$p;b(Lduh$m;Ldsc;Lapf;II)Ldsb;named fillNWOpeningLnet/minecraft/structure/StrongholdGenerator$Piece;fillNWOpening(Lnet/minecraft/structure/StrongholdGenerator$Start;Lnet/minecraft/structure/StructurePiecesHolder;Lnet/minecraft/util/math/random/Random;II)Lnet/minecraft/structure/StructurePiece;
-
fillSEOpening
@Nullable protected @Nullable StructurePiece fillSEOpening(StrongholdGenerator.Start start, StructurePiecesHolder holder, Random random, int heightOffset, int leftRightOffset) - Mappings:
Namespace Name Mixin selector intermediary method_14873Lnet/minecraft/class_3421$class_3437;method_14873(Lnet/minecraft/class_3421$class_3434;Lnet/minecraft/class_6130;Lnet/minecraft/class_5819;II)Lnet/minecraft/class_3443;official cLduh$p;c(Lduh$m;Ldsc;Lapf;II)Ldsb;named fillSEOpeningLnet/minecraft/structure/StrongholdGenerator$Piece;fillSEOpening(Lnet/minecraft/structure/StrongholdGenerator$Start;Lnet/minecraft/structure/StructurePiecesHolder;Lnet/minecraft/util/math/random/Random;II)Lnet/minecraft/structure/StructurePiece;
-
isInBounds
- Mappings:
Namespace Name Mixin selector intermediary method_14871Lnet/minecraft/class_3421$class_3437;method_14871(Lnet/minecraft/class_3341;)Zofficial aLduh$p;a(Ldrp;)Znamed isInBoundsLnet/minecraft/structure/StrongholdGenerator$Piece;isInBounds(Lnet/minecraft/util/math/BlockBox;)Z
-