Interface StructurePiecesHolder

All Known Implementing Classes:
BuriedTreasureFeature.Start, DesertPyramidFeature.Start, EndCityFeature.Start, IglooFeature.Start, JigsawFeature.Start, JungleTempleFeature.Start, MarginedStructureStart, MineshaftFeature.Start, NetherFortressFeature.Start, NetherFossilFeature.Start, OceanMonumentFeature.Start, OceanRuinFeature.Start, RuinedPortalFeature.Start, ShipwreckFeature.Start, StrongholdFeature.Start, StructureStart, SwampHutFeature.Start, WoodlandMansionFeature.Start

public interface StructurePiecesHolder
A holder of generated structure pieces.
See Also:
StructurePiece.fillOpenings(net.minecraft.structure.StructurePiece, net.minecraft.structure.StructurePiecesHolder, java.util.Random)
Mappings:
Namespace Name
official dbm
intermediary net/minecraft/class_6130
named net/minecraft/structure/StructurePiecesHolder
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adds a structure piece into this holder.
    Returns an arbitrary piece in this holder that intersects the given box, or null if there is no such piece.
  • Method Details

    • addPiece

      void addPiece(StructurePiece piece)
      Adds a structure piece into this holder.
      Parameters:
      piece - the piece to add
      Mappings:
      Namespace Name Mixin selector
      official a Ldbm;a(Ldbl;)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

      @Nullable @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.
      Parameters:
      box - the box to check intersection against
      Mappings:
      Namespace Name Mixin selector
      official a Ldbm;a(Ldaq;)Ldbl;
      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;