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 official dwaintermediary net/minecraft/class_6626named net/minecraft/structure/StructurePiecesCollector
-
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 official aLdwa;a:Ljava/util/List;intermediary field_34944Lnet/minecraft/class_6626;field_34944:Ljava/util/List;named piecesLnet/minecraft/structure/StructurePiecesCollector;pieces: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 official aLdvn;a(Ldvm;)Vintermediary method_35462Lnet/minecraft/class_6130;method_35462(Lnet/minecraft/class_3443;)Vnamed addPieceLnet/minecraft/structure/StructurePiecesHolder;addPiece(Lnet/minecraft/structure/StructurePiece;)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 official aLdvn;a(Ldva;)Ldvm;intermediary method_35461Lnet/minecraft/class_6130;method_35461(Lnet/minecraft/class_3341;)Lnet/minecraft/class_3443;named getIntersectingLnet/minecraft/structure/StructurePiecesHolder;getIntersecting(Lnet/minecraft/util/math/BlockBox;)Lnet/minecraft/structure/StructurePiece;
-
shift
Deprecated.- Mappings:
Namespace Name Mixin selector official aLdwa;a(I)Vintermediary method_38715Lnet/minecraft/class_6626;method_38715(I)Vnamed shiftLnet/minecraft/structure/StructurePiecesCollector;shift(I)V
-
shiftInto
Deprecated.Somewhat likeshiftInto(random, bottomY, topY - topPenalty).- Mappings:
Namespace Name Mixin selector official aLdwa;a(IILasc;I)Iintermediary method_38716Lnet/minecraft/class_6626;method_38716(IILnet/minecraft/class_5819;I)Inamed shiftIntoLnet/minecraft/structure/StructurePiecesCollector;shiftInto(IILnet/minecraft/util/math/random/Random;I)I
-
shiftInto
Shifts all pieces so they lie within[baseY, topY]vertically.- Mappings:
Namespace Name Mixin selector official aLdwa;a(Lasc;II)Vintermediary method_38718Lnet/minecraft/class_6626;method_38718(Lnet/minecraft/class_5819;II)Vnamed shiftIntoLnet/minecraft/structure/StructurePiecesCollector;shiftInto(Lnet/minecraft/util/math/random/Random;II)V
-
toList
- Mappings:
Namespace Name Mixin selector official aLdwa;a()Ldvx;intermediary method_38714Lnet/minecraft/class_6626;method_38714()Lnet/minecraft/class_6624;named toListLnet/minecraft/structure/StructurePiecesCollector;toList()Lnet/minecraft/structure/StructurePiecesList;
-
clear
public void clear()- Mappings:
Namespace Name Mixin selector official bLdwa;b()Vintermediary method_38719Lnet/minecraft/class_6626;method_38719()Vnamed clearLnet/minecraft/structure/StructurePiecesCollector;clear()V
-
isEmpty
public boolean isEmpty()- Mappings:
Namespace Name Mixin selector official cLdwa;c()Zintermediary method_38720Lnet/minecraft/class_6626;method_38720()Znamed isEmptyLnet/minecraft/structure/StructurePiecesCollector;isEmpty()Z
-
getBoundingBox
- Mappings:
Namespace Name Mixin selector official dLdwa;d()Ldva;intermediary method_38721Lnet/minecraft/class_6626;method_38721()Lnet/minecraft/class_3341;named getBoundingBoxLnet/minecraft/structure/StructurePiecesCollector;getBoundingBox()Lnet/minecraft/util/math/BlockBox;
-