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 erb$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
Lerb$p;h:Lerb$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>
Leon;<init>(Lepa;ILeob;)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>
Leon;<init>(Lepa;Lux;)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
Leon;a(Leoz;Lux;)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
Lerb$p;a(Ldif;Lbam;Leob;Lerb$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
Lerb$p;b(Lbam;)Lerb$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
Lerb$p;a(Lerb$m;Leoo;Lbam;II)Leon;
-
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
Lerb$p;b(Lerb$m;Leoo;Lbam;II)Leon;
-
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
Lerb$p;c(Lerb$m;Leoo;Lbam;II)Leon;
-
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
Lerb$p;a(Leob;)Z
-