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 official dbj$p
intermediary net/minecraft/class_3421$class_3437
named net/minecraft/structure/StrongholdGenerator$Piece
-
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 blockBox)
Piece(StructurePieceType type, NbtCompound nbt)
-
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable StructurePiece
fillForwardOpening(StrongholdGenerator.Start start, StructurePiecesHolder structurePiecesHolder, Random random, int leftRightOffset, int heightOffset)
protected @Nullable StructurePiece
fillNWOpening(StrongholdGenerator.Start start, StructurePiecesHolder structurePiecesHolder, Random random, int heightOffset, int leftRightOffset)
protected @Nullable StructurePiece
fillSEOpening(StrongholdGenerator.Start start, StructurePiecesHolder structurePiecesHolder, 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(ServerWorld world, NbtCompound nbt)
Methods inherited from class net.minecraft.structure.StructurePiece
addBlock, addBlockWithRandomThreshold, addChest, addChest, addDispenser, applyXTransform, applyYTransform, applyZTransform, canAddBlock, canReplace, fill, fillDownwards, fillHalfEllipsoid, fillOpenings, fillWithOutline, fillWithOutline, fillWithOutlineUnderSeaLevel, generate, getBlockAt, getBoundingBox, getChainLength, getFacing, getRotation, getType, intersectsChunk, isUnderSeaLevel, method_35454, method_35455, method_35456, method_35457, method_35458, method_35460, offsetPos, orientateChest, setOrientation, toNbt, translate
-
Field Details
-
entryDoor
- Mappings:
Namespace Name Mixin selector official e
Ldbj$p;e:Ldbj$p$a;
intermediary field_15287
Lnet/minecraft/class_3421$class_3437;field_15287:Lnet/minecraft/class_3421$class_3437$class_3438;
named entryDoor
Lnet/minecraft/structure/StrongholdGenerator$Piece;entryDoor:Lnet/minecraft/structure/StrongholdGenerator$Piece$EntranceType;
-
-
Constructor Details
-
Piece
- Mappings:
Namespace Name Mixin selector official <init>
Ldbl;<init>(Lcud;ILdaq;)V
intermediary <init>
Lnet/minecraft/class_3443;<init>(Lnet/minecraft/class_3773;ILnet/minecraft/class_3341;)V
named <init>
Lnet/minecraft/structure/StructurePiece;<init>(Lnet/minecraft/structure/StructurePieceType;ILnet/minecraft/util/math/BlockBox;)V
-
Piece
- Mappings:
Namespace Name Mixin selector official <init>
Ldbl;<init>(Lcud;Lna;)V
intermediary <init>
Lnet/minecraft/class_3443;<init>(Lnet/minecraft/class_3773;Lnet/minecraft/class_2487;)V
named <init>
Lnet/minecraft/structure/StructurePiece;<init>(Lnet/minecraft/structure/StructurePieceType;Lnet/minecraft/nbt/NbtCompound;)V
-
-
Method Details
-
method_33882
- Overrides:
method_33882
in classStructurePiece
- Mappings:
Namespace Name Mixin selector official method_33882
Ldbj$p;method_33882()Lctg;
intermediary method_33882
Lnet/minecraft/class_3421$class_3437;method_33882()Lnet/minecraft/class_5847;
named method_33882
Lnet/minecraft/structure/StrongholdGenerator$Piece;method_33882()Lnet/minecraft/world/gen/StructureWeightType;
-
writeNbt
- Specified by:
writeNbt
in classStructurePiece
- Mappings:
Namespace Name Mixin selector official a
Ldbl;a(Labr;Lna;)V
intermediary method_14943
Lnet/minecraft/class_3443;method_14943(Lnet/minecraft/class_3218;Lnet/minecraft/class_2487;)V
named writeNbt
Lnet/minecraft/structure/StructurePiece;writeNbt(Lnet/minecraft/server/world/ServerWorld;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 official a
Ldbj$p;a(Lbxk;Ljava/util/Random;Ldaq;Ldbj$p$a;III)V
intermediary method_14872
Lnet/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)V
named generateEntrance
Lnet/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 a
Ldbj$p;a(Ljava/util/Random;)Ldbj$p$a;
intermediary method_14869
Lnet/minecraft/class_3421$class_3437;method_14869(Ljava/util/Random;)Lnet/minecraft/class_3421$class_3437$class_3438;
named getRandomEntrance
Lnet/minecraft/structure/StrongholdGenerator$Piece;getRandomEntrance(Ljava/util/Random;)Lnet/minecraft/structure/StrongholdGenerator$Piece$EntranceType;
-
fillForwardOpening
@Nullable protected @Nullable StructurePiece fillForwardOpening(StrongholdGenerator.Start start, StructurePiecesHolder structurePiecesHolder, Random random, int leftRightOffset, int heightOffset)- Mappings:
Namespace Name Mixin selector official a
Ldbj$p;a(Ldbj$m;Ldbm;Ljava/util/Random;II)Ldbl;
intermediary method_14874
Lnet/minecraft/class_3421$class_3437;method_14874(Lnet/minecraft/class_3421$class_3434;Lnet/minecraft/class_6130;Ljava/util/Random;II)Lnet/minecraft/class_3443;
named fillForwardOpening
Lnet/minecraft/structure/StrongholdGenerator$Piece;fillForwardOpening(Lnet/minecraft/structure/StrongholdGenerator$Start;Lnet/minecraft/structure/StructurePiecesHolder;Ljava/util/Random;II)Lnet/minecraft/structure/StructurePiece;
-
fillNWOpening
@Nullable protected @Nullable StructurePiece fillNWOpening(StrongholdGenerator.Start start, StructurePiecesHolder structurePiecesHolder, Random random, int heightOffset, int leftRightOffset)- Mappings:
Namespace Name Mixin selector official b
Ldbj$p;b(Ldbj$m;Ldbm;Ljava/util/Random;II)Ldbl;
intermediary method_14870
Lnet/minecraft/class_3421$class_3437;method_14870(Lnet/minecraft/class_3421$class_3434;Lnet/minecraft/class_6130;Ljava/util/Random;II)Lnet/minecraft/class_3443;
named fillNWOpening
Lnet/minecraft/structure/StrongholdGenerator$Piece;fillNWOpening(Lnet/minecraft/structure/StrongholdGenerator$Start;Lnet/minecraft/structure/StructurePiecesHolder;Ljava/util/Random;II)Lnet/minecraft/structure/StructurePiece;
-
fillSEOpening
@Nullable protected @Nullable StructurePiece fillSEOpening(StrongholdGenerator.Start start, StructurePiecesHolder structurePiecesHolder, Random random, int heightOffset, int leftRightOffset)- Mappings:
Namespace Name Mixin selector official c
Ldbj$p;c(Ldbj$m;Ldbm;Ljava/util/Random;II)Ldbl;
intermediary method_14873
Lnet/minecraft/class_3421$class_3437;method_14873(Lnet/minecraft/class_3421$class_3434;Lnet/minecraft/class_6130;Ljava/util/Random;II)Lnet/minecraft/class_3443;
named fillSEOpening
Lnet/minecraft/structure/StrongholdGenerator$Piece;fillSEOpening(Lnet/minecraft/structure/StrongholdGenerator$Start;Lnet/minecraft/structure/StructurePiecesHolder;Ljava/util/Random;II)Lnet/minecraft/structure/StructurePiece;
-
isInBounds
- Mappings:
Namespace Name Mixin selector official a
Ldbj$p;a(Ldaq;)Z
intermediary method_14871
Lnet/minecraft/class_3421$class_3437;method_14871(Lnet/minecraft/class_3341;)Z
named isInBounds
Lnet/minecraft/structure/StrongholdGenerator$Piece;isInBounds(Lnet/minecraft/util/math/BlockBox;)Z
-