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 ekj
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPiece(StructurePiece piece) Adds a structure piece into this holder.voidclear()getIntersecting(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 aLekj;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 aLejw;a(Lejv;)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 aLejw;a(Lejj;)Lejv;
-
shift
Deprecated.- Mappings:
Namespace Name Mixin selector named shiftLnet/minecraft/structure/StructurePiecesCollector;shift(I)Vintermediary method_38715Lnet/minecraft/class_6626;method_38715(I)Vofficial aLekj;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 aLekj;a(IILayw;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 aLekj;a(Layw;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 aLekj;a()Lekg;
-
clear
public void clear()- Mappings:
Namespace Name Mixin selector named clearLnet/minecraft/structure/StructurePiecesCollector;clear()Vintermediary method_38719Lnet/minecraft/class_6626;method_38719()Vofficial bLekj;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 cLekj;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 dLekj;d()Lejj;
-