Class StructurePiecesCollector

java.lang.Object
net.minecraft.structure.StructurePiecesCollector
All Implemented Interfaces:
StructurePiecesHolder

public class StructurePiecesCollector extends Object implements StructurePiecesHolder
A collector of structure pieces to be added to a structure start.
See Also:
Mappings:
Namespace Name
named net/minecraft/structure/StructurePiecesCollector
intermediary net/minecraft/class_6626
official ejd
  • Field Details

    • pieces

      private final List<StructurePiece> pieces
      Mappings:
      Namespace Name Mixin selector
      named pieces Lnet/minecraft/structure/StructurePiecesCollector;pieces:Ljava/util/List;
      intermediary field_34944 Lnet/minecraft/class_6626;field_34944:Ljava/util/List;
      official a Lejd;a:Ljava/util/List;
  • Constructor Details

    • StructurePiecesCollector

      public StructurePiecesCollector()
  • Method Details

    • addPiece

      public void addPiece(StructurePiece piece)
      Adds a structure piece into this holder.
      Specified by:
      addPiece in interface StructurePiecesHolder
      Parameters:
      piece - the piece to add
      Mappings:
      Namespace Name Mixin selector
      named addPiece Lnet/minecraft/structure/StructurePiecesHolder;addPiece(Lnet/minecraft/structure/StructurePiece;)V
      intermediary method_35462 Lnet/minecraft/class_6130;method_35462(Lnet/minecraft/class_3443;)V
      official a Leiq;a(Leip;)V
    • getIntersecting

      @Nullable public @Nullable StructurePiece getIntersecting(BlockBox box)
      Returns an arbitrary piece in this holder that intersects the given box, or null if there is no such piece.
      Specified by:
      getIntersecting in interface StructurePiecesHolder
      Parameters:
      box - the box to check intersection against
      Mappings:
      Namespace Name Mixin selector
      named getIntersecting Lnet/minecraft/structure/StructurePiecesHolder;getIntersecting(Lnet/minecraft/util/math/BlockBox;)Lnet/minecraft/structure/StructurePiece;
      intermediary method_35461 Lnet/minecraft/class_6130;method_35461(Lnet/minecraft/class_3341;)Lnet/minecraft/class_3443;
      official a Leiq;a(Leid;)Leip;
    • shift

      @Deprecated public void shift(int y)
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      named shift Lnet/minecraft/structure/StructurePiecesCollector;shift(I)V
      intermediary method_38715 Lnet/minecraft/class_6626;method_38715(I)V
      official a Lejd;a(I)V
    • shiftInto

      @Deprecated public int shiftInto(int topY, int bottomY, Random random, int topPenalty)
      Deprecated.
      Somewhat like shiftInto(random, bottomY, topY - topPenalty).
      Mappings:
      Namespace Name Mixin selector
      named shiftInto Lnet/minecraft/structure/StructurePiecesCollector;shiftInto(IILnet/minecraft/util/math/random/Random;I)I
      intermediary method_38716 Lnet/minecraft/class_6626;method_38716(IILnet/minecraft/class_5819;I)I
      official a Lejd;a(IILazh;I)I
    • shiftInto

      public void shiftInto(Random random, int baseY, int topY)
      Shifts all pieces so they lie within [baseY, topY] vertically.
      Mappings:
      Namespace Name Mixin selector
      named shiftInto Lnet/minecraft/structure/StructurePiecesCollector;shiftInto(Lnet/minecraft/util/math/random/Random;II)V
      intermediary method_38718 Lnet/minecraft/class_6626;method_38718(Lnet/minecraft/class_5819;II)V
      official a Lejd;a(Lazh;II)V
    • toList

      public StructurePiecesList toList()
      Mappings:
      Namespace Name Mixin selector
      named toList Lnet/minecraft/structure/StructurePiecesCollector;toList()Lnet/minecraft/structure/StructurePiecesList;
      intermediary method_38714 Lnet/minecraft/class_6626;method_38714()Lnet/minecraft/class_6624;
      official a Lejd;a()Leja;
    • clear

      public void clear()
      Mappings:
      Namespace Name Mixin selector
      named clear Lnet/minecraft/structure/StructurePiecesCollector;clear()V
      intermediary method_38719 Lnet/minecraft/class_6626;method_38719()V
      official b Lejd;b()V
    • isEmpty

      public boolean isEmpty()
      Mappings:
      Namespace Name Mixin selector
      named isEmpty Lnet/minecraft/structure/StructurePiecesCollector;isEmpty()Z
      intermediary method_38720 Lnet/minecraft/class_6626;method_38720()Z
      official c Lejd;c()Z
    • getBoundingBox

      public BlockBox getBoundingBox()
      Mappings:
      Namespace Name Mixin selector
      named getBoundingBox Lnet/minecraft/structure/StructurePiecesCollector;getBoundingBox()Lnet/minecraft/util/math/BlockBox;
      intermediary method_38721 Lnet/minecraft/class_6626;method_38721()Lnet/minecraft/class_3341;
      official d Lejd;d()Leid;