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 dfq
intermediary net/minecraft/class_6626
named net/minecraft/structure/StructurePiecesCollector
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPiece
(StructurePiece piece) Adds a structure piece into this holder.void
clear()
getIntersecting
(BlockBox box) Returns an arbitrary piece in this holder that intersects the givenbox
, ornull
if there is no such piece.boolean
isEmpty()
void
shift
(int y) Deprecated.void
Deprecated.void
Shifts all pieces so they lie within[baseY, topY]
vertically.toList()
-
Field Details
-
pieces
- Mappings:
Namespace Name Mixin selector official a
Ldfq;a:Ljava/util/List;
intermediary field_34944
Lnet/minecraft/class_6626;field_34944:Ljava/util/List;
named pieces
Lnet/minecraft/structure/StructurePiecesCollector;pieces:Ljava/util/List;
-
-
Constructor Details
-
StructurePiecesCollector
public StructurePiecesCollector()
-
-
Method Details
-
addPiece
Adds a structure piece into this holder.- Specified by:
addPiece
in interfaceStructurePiecesHolder
- Parameters:
piece
- the piece to add- Mappings:
Namespace Name Mixin selector official a
Ldfg;a(Ldff;)V
intermediary method_35462
Lnet/minecraft/class_6130;method_35462(Lnet/minecraft/class_3443;)V
named addPiece
Lnet/minecraft/structure/StructurePiecesHolder;addPiece(Lnet/minecraft/structure/StructurePiece;)V
-
getIntersecting
Returns an arbitrary piece in this holder that intersects the givenbox
, ornull
if there is no such piece.- Specified by:
getIntersecting
in interfaceStructurePiecesHolder
- Parameters:
box
- the box to check intersection against- Mappings:
Namespace Name Mixin selector official a
Ldfg;a(Ldeh;)Ldff;
intermediary method_35461
Lnet/minecraft/class_6130;method_35461(Lnet/minecraft/class_3341;)Lnet/minecraft/class_3443;
named getIntersecting
Lnet/minecraft/structure/StructurePiecesHolder;getIntersecting(Lnet/minecraft/util/math/BlockBox;)Lnet/minecraft/structure/StructurePiece;
-
shift
Deprecated.- Mappings:
Namespace Name Mixin selector official a
Ldfq;a(I)V
intermediary method_38715
Lnet/minecraft/class_6626;method_38715(I)V
named shift
Lnet/minecraft/structure/StructurePiecesCollector;shift(I)V
-
shiftInto
Deprecated.Somewhat likeshiftInto(random, bottomY, topY - topPenalty)
.- Mappings:
Namespace Name Mixin selector official a
Ldfq;a(IILjava/util/Random;I)V
intermediary method_38716
Lnet/minecraft/class_6626;method_38716(IILjava/util/Random;I)V
named shiftInto
Lnet/minecraft/structure/StructurePiecesCollector;shiftInto(IILjava/util/Random;I)V
-
shiftInto
Shifts all pieces so they lie within[baseY, topY]
vertically.- Mappings:
Namespace Name Mixin selector official a
Ldfq;a(Ljava/util/Random;II)V
intermediary method_38718
Lnet/minecraft/class_6626;method_38718(Ljava/util/Random;II)V
named shiftInto
Lnet/minecraft/structure/StructurePiecesCollector;shiftInto(Ljava/util/Random;II)V
-
toList
- Mappings:
Namespace Name Mixin selector official a
Ldfq;a()Ldfo;
intermediary method_38714
Lnet/minecraft/class_6626;method_38714()Lnet/minecraft/class_6624;
named toList
Lnet/minecraft/structure/StructurePiecesCollector;toList()Lnet/minecraft/structure/StructurePiecesList;
-
clear
public void clear()- Mappings:
Namespace Name Mixin selector official b
Ldfq;b()V
intermediary method_38719
Lnet/minecraft/class_6626;method_38719()V
named clear
Lnet/minecraft/structure/StructurePiecesCollector;clear()V
-
isEmpty
public boolean isEmpty()- Mappings:
Namespace Name Mixin selector official c
Ldfq;c()Z
intermediary method_38720
Lnet/minecraft/class_6626;method_38720()Z
named isEmpty
Lnet/minecraft/structure/StructurePiecesCollector;isEmpty()Z
-
getBoundingBox
- Mappings:
Namespace Name Mixin selector official d
Ldfq;d()Ldeh;
intermediary method_38721
Lnet/minecraft/class_6626;method_38721()Lnet/minecraft/class_3341;
named getBoundingBox
Lnet/minecraft/structure/StructurePiecesCollector;getBoundingBox()Lnet/minecraft/util/math/BlockBox;
-