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 named net/minecraft/structure/StrongholdGenerator$Piece
intermediary net/minecraft/class_3421$class_3437
official eld$p
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.structure.StructurePiece
StructurePiece.BlockRandomizer
-
Field Summary
Fields inherited from class net.minecraft.structure.StructurePiece
AIR, boundingBox, chainLength
-
Constructor Summary
ModifierConstructorDescriptionprotected
Piece
(StructurePieceType type, int length, BlockBox boundingBox) Piece
(StructurePieceType type, NbtCompound nbt) -
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable StructurePiece
fillForwardOpening
(StrongholdGenerator.Start start, StructurePiecesHolder holder, Random random, int leftRightOffset, int heightOffset) protected @Nullable StructurePiece
fillNWOpening
(StrongholdGenerator.Start start, StructurePiecesHolder holder, Random random, int heightOffset, int leftRightOffset) protected @Nullable StructurePiece
fillSEOpening
(StrongholdGenerator.Start start, StructurePiecesHolder holder, Random random, int heightOffset, int leftRightOffset) protected void
generateEntrance
(StructureWorldAccess world, Random random, BlockBox boundingBox, StrongholdGenerator.Piece.EntranceType type, int x, int y, int z) protected StrongholdGenerator.Piece.EntranceType
getRandomEntrance
(Random random) protected static boolean
isInBounds
(BlockBox boundingBox) protected void
writeNbt
(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 named entryDoor
Lnet/minecraft/structure/StrongholdGenerator$Piece;entryDoor:Lnet/minecraft/structure/StrongholdGenerator$Piece$EntranceType;
intermediary field_15287
Lnet/minecraft/class_3421$class_3437;field_15287:Lnet/minecraft/class_3421$class_3437$class_3438;
official h
Leld$p;h:Leld$p$a;
-
-
Constructor Details
-
Piece
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/structure/StructurePiece;<init>(Lnet/minecraft/structure/StructurePieceType;ILnet/minecraft/util/math/BlockBox;)V
intermediary <init>
Lnet/minecraft/class_3443;<init>(Lnet/minecraft/class_3773;ILnet/minecraft/class_3341;)V
official <init>
Leiq;<init>(Lejd;ILeie;)V
-
Piece
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/structure/StructurePiece;<init>(Lnet/minecraft/structure/StructurePieceType;Lnet/minecraft/nbt/NbtCompound;)V
intermediary <init>
Lnet/minecraft/class_3443;<init>(Lnet/minecraft/class_3773;Lnet/minecraft/class_2487;)V
official <init>
Leiq;<init>(Lejd;Lus;)V
-
-
Method Details
-
writeNbt
- Specified by:
writeNbt
in classStructurePiece
- Mappings:
Namespace Name Mixin selector named writeNbt
Lnet/minecraft/structure/StructurePiece;writeNbt(Lnet/minecraft/structure/StructureContext;Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_14943
Lnet/minecraft/class_3443;method_14943(Lnet/minecraft/class_6625;Lnet/minecraft/class_2487;)V
official a
Leiq;a(Lejc;Lus;)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 named generateEntrance
Lnet/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
intermediary method_14872
Lnet/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)V
official a
Leld$p;a(Ldcv;Lazh;Leie;Leld$p$a;III)V
-
getRandomEntrance
- Mappings:
Namespace Name Mixin selector named getRandomEntrance
Lnet/minecraft/structure/StrongholdGenerator$Piece;getRandomEntrance(Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/structure/StrongholdGenerator$Piece$EntranceType;
intermediary method_14869
Lnet/minecraft/class_3421$class_3437;method_14869(Lnet/minecraft/class_5819;)Lnet/minecraft/class_3421$class_3437$class_3438;
official b
Leld$p;b(Lazh;)Leld$p$a;
-
fillForwardOpening
@Nullable protected @Nullable StructurePiece fillForwardOpening(StrongholdGenerator.Start start, StructurePiecesHolder holder, Random random, int leftRightOffset, int heightOffset) - Mappings:
Namespace Name Mixin selector named fillForwardOpening
Lnet/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;
intermediary method_14874
Lnet/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 a
Leld$p;a(Leld$m;Leir;Lazh;II)Leiq;
-
fillNWOpening
@Nullable protected @Nullable StructurePiece fillNWOpening(StrongholdGenerator.Start start, StructurePiecesHolder holder, Random random, int heightOffset, int leftRightOffset) - Mappings:
Namespace Name Mixin selector named fillNWOpening
Lnet/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;
intermediary method_14870
Lnet/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 b
Leld$p;b(Leld$m;Leir;Lazh;II)Leiq;
-
fillSEOpening
@Nullable protected @Nullable StructurePiece fillSEOpening(StrongholdGenerator.Start start, StructurePiecesHolder holder, Random random, int heightOffset, int leftRightOffset) - Mappings:
Namespace Name Mixin selector named fillSEOpening
Lnet/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;
intermediary method_14873
Lnet/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 c
Leld$p;c(Leld$m;Leir;Lazh;II)Leiq;
-
isInBounds
- Mappings:
Namespace Name Mixin selector named isInBounds
Lnet/minecraft/structure/StrongholdGenerator$Piece;isInBounds(Lnet/minecraft/util/math/BlockBox;)Z
intermediary method_14871
Lnet/minecraft/class_3421$class_3437;method_14871(Lnet/minecraft/class_3341;)Z
official a
Leld$p;a(Leie;)Z
-