Package net.minecraft.structure
Class StructurePiecesCollector
java.lang.Object
net.minecraft.structure.StructurePiecesCollector
- All Implemented Interfaces:
StructurePiecesHolder
A collector of structure pieces to be added to a structure start.
- See Also:
- Mappings:
Namespace Name named net/minecraft/structure/StructurePiecesCollectorintermediary net/minecraft/class_6626official ejd
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPiece(StructurePiece piece) Adds a structure piece into this holder.voidclear()@Nullable StructurePiecegetIntersecting(BlockBox box) Returns an arbitrary piece in this holder that intersects the givenbox, ornullif there is no such piece.booleanisEmpty()voidshift(int y) Deprecated.intDeprecated.voidShifts all pieces so they lie within[baseY, topY]vertically.toList()
-
Field Details
-
pieces
- Mappings:
Namespace Name Mixin selector named piecesLnet/minecraft/structure/StructurePiecesCollector;pieces:Ljava/util/List;intermediary field_34944Lnet/minecraft/class_6626;field_34944:Ljava/util/List;official aLejd;a:Ljava/util/List;
-
-
Constructor Details
-
StructurePiecesCollector
public StructurePiecesCollector()
-
-
Method Details
-
addPiece
Adds a structure piece into this holder.- Specified by:
addPiecein interfaceStructurePiecesHolder- Parameters:
piece- the piece to add- Mappings:
Namespace Name Mixin selector named addPieceLnet/minecraft/structure/StructurePiecesHolder;addPiece(Lnet/minecraft/structure/StructurePiece;)Vintermediary method_35462Lnet/minecraft/class_6130;method_35462(Lnet/minecraft/class_3443;)Vofficial aLeiq;a(Leip;)V
-
getIntersecting
Returns an arbitrary piece in this holder that intersects the givenbox, ornullif there is no such piece.- Specified by:
getIntersectingin interfaceStructurePiecesHolder- Parameters:
box- the box to check intersection against- Mappings:
Namespace Name Mixin selector named getIntersectingLnet/minecraft/structure/StructurePiecesHolder;getIntersecting(Lnet/minecraft/util/math/BlockBox;)Lnet/minecraft/structure/StructurePiece;intermediary method_35461Lnet/minecraft/class_6130;method_35461(Lnet/minecraft/class_3341;)Lnet/minecraft/class_3443;official aLeiq;a(Leid;)Leip;
-
shift
Deprecated.- Mappings:
Namespace Name Mixin selector named shiftLnet/minecraft/structure/StructurePiecesCollector;shift(I)Vintermediary method_38715Lnet/minecraft/class_6626;method_38715(I)Vofficial aLejd;a(I)V
-
shiftInto
Deprecated.Somewhat likeshiftInto(random, bottomY, topY - topPenalty).- Mappings:
Namespace Name Mixin selector named shiftIntoLnet/minecraft/structure/StructurePiecesCollector;shiftInto(IILnet/minecraft/util/math/random/Random;I)Iintermediary method_38716Lnet/minecraft/class_6626;method_38716(IILnet/minecraft/class_5819;I)Iofficial aLejd;a(IILazh;I)I
-
shiftInto
Shifts all pieces so they lie within[baseY, topY]vertically.- Mappings:
Namespace Name Mixin selector named shiftIntoLnet/minecraft/structure/StructurePiecesCollector;shiftInto(Lnet/minecraft/util/math/random/Random;II)Vintermediary method_38718Lnet/minecraft/class_6626;method_38718(Lnet/minecraft/class_5819;II)Vofficial aLejd;a(Lazh;II)V
-
toList
- Mappings:
Namespace Name Mixin selector named toListLnet/minecraft/structure/StructurePiecesCollector;toList()Lnet/minecraft/structure/StructurePiecesList;intermediary method_38714Lnet/minecraft/class_6626;method_38714()Lnet/minecraft/class_6624;official aLejd;a()Leja;
-
clear
public void clear()- Mappings:
Namespace Name Mixin selector named clearLnet/minecraft/structure/StructurePiecesCollector;clear()Vintermediary method_38719Lnet/minecraft/class_6626;method_38719()Vofficial bLejd;b()V
-
isEmpty
public boolean isEmpty()- Mappings:
Namespace Name Mixin selector named isEmptyLnet/minecraft/structure/StructurePiecesCollector;isEmpty()Zintermediary method_38720Lnet/minecraft/class_6626;method_38720()Zofficial cLejd;c()Z
-
getBoundingBox
- Mappings:
Namespace Name Mixin selector named getBoundingBoxLnet/minecraft/structure/StructurePiecesCollector;getBoundingBox()Lnet/minecraft/util/math/BlockBox;intermediary method_38721Lnet/minecraft/class_6626;method_38721()Lnet/minecraft/class_3341;official dLejd;d()Leid;
-