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 intermediary net/minecraft/class_6626official dspnamed 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()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 intermediary field_34944Lnet/minecraft/class_6626;field_34944:Ljava/util/List;official aLdsp;a: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 intermediary method_35462Lnet/minecraft/class_6130;method_35462(Lnet/minecraft/class_3443;)Vofficial aLdsc;a(Ldsb;)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 intermediary method_35461Lnet/minecraft/class_6130;method_35461(Lnet/minecraft/class_3341;)Lnet/minecraft/class_3443;official aLdsc;a(Ldrp;)Ldsb;named getIntersectingLnet/minecraft/structure/StructurePiecesHolder;getIntersecting(Lnet/minecraft/util/math/BlockBox;)Lnet/minecraft/structure/StructurePiece;
-
shift
Deprecated.- Mappings:
Namespace Name Mixin selector intermediary method_38715Lnet/minecraft/class_6626;method_38715(I)Vofficial aLdsp;a(I)Vnamed shiftLnet/minecraft/structure/StructurePiecesCollector;shift(I)V
-
shiftInto
Deprecated.Somewhat likeshiftInto(random, bottomY, topY - topPenalty).- Mappings:
Namespace Name Mixin selector intermediary method_38716Lnet/minecraft/class_6626;method_38716(IILnet/minecraft/class_5819;I)Iofficial aLdsp;a(IILapf;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 intermediary method_38718Lnet/minecraft/class_6626;method_38718(Lnet/minecraft/class_5819;II)Vofficial aLdsp;a(Lapf;II)Vnamed shiftIntoLnet/minecraft/structure/StructurePiecesCollector;shiftInto(Lnet/minecraft/util/math/random/Random;II)V
-
toList
- Mappings:
Namespace Name Mixin selector intermediary method_38714Lnet/minecraft/class_6626;method_38714()Lnet/minecraft/class_6624;official aLdsp;a()Ldsm;named toListLnet/minecraft/structure/StructurePiecesCollector;toList()Lnet/minecraft/structure/StructurePiecesList;
-
clear
public void clear()- Mappings:
Namespace Name Mixin selector intermediary method_38719Lnet/minecraft/class_6626;method_38719()Vofficial bLdsp;b()Vnamed clearLnet/minecraft/structure/StructurePiecesCollector;clear()V
-
isEmpty
public boolean isEmpty()- Mappings:
Namespace Name Mixin selector intermediary method_38720Lnet/minecraft/class_6626;method_38720()Zofficial cLdsp;c()Znamed isEmptyLnet/minecraft/structure/StructurePiecesCollector;isEmpty()Z
-
getBoundingBox
- Mappings:
Namespace Name Mixin selector intermediary method_38721Lnet/minecraft/class_6626;method_38721()Lnet/minecraft/class_3341;official dLdsp;d()Ldrp;named getBoundingBoxLnet/minecraft/structure/StructurePiecesCollector;getBoundingBox()Lnet/minecraft/util/math/BlockBox;
-