Record Class StructurePiecesList

java.lang.Object
java.lang.Record
net.minecraft.structure.StructurePiecesList
Record Components:
pieces -

public record StructurePiecesList(List<StructurePiece> pieces) extends Record
An immutable list of structure pieces, usually belonging to a structure start.
Mappings:
Namespace Name
official dzv
intermediary net/minecraft/class_6624
named net/minecraft/structure/StructurePiecesList
official a
intermediary comp_132
named pieces
  • Field Details

    • pieces

      private final List<StructurePiece> pieces
      The field for the pieces record component.
    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official b Ldzv;b:Lorg/slf4j/Logger;
      intermediary field_34941 Lnet/minecraft/class_6624;field_34941:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/structure/StructurePiecesList;LOGGER:Lorg/slf4j/Logger;
    • JIGSAW

      private static final Identifier JIGSAW
      Mappings:
      Namespace Name Mixin selector
      official c Ldzv;c:Lahg;
      intermediary field_34942 Lnet/minecraft/class_6624;field_34942:Lnet/minecraft/class_2960;
      named JIGSAW Lnet/minecraft/structure/StructurePiecesList;JIGSAW:Lnet/minecraft/util/Identifier;
    • ID_UPDATES

      private static final Map<Identifier,Identifier> ID_UPDATES
      Mappings:
      Namespace Name Mixin selector
      official d Ldzv;d:Ljava/util/Map;
      intermediary field_34943 Lnet/minecraft/class_6624;field_34943:Ljava/util/Map;
      named ID_UPDATES Lnet/minecraft/structure/StructurePiecesList;ID_UPDATES:Ljava/util/Map;
  • Constructor Details

    • StructurePiecesList

      public StructurePiecesList(List<StructurePiece> pieces)
      Creates an instance of a StructurePiecesList record class.
      Parameters:
      pieces - the value for the pieces record component
  • Method Details

    • isEmpty

      public boolean isEmpty()
      Mappings:
      Namespace Name Mixin selector
      official a Ldzv;a()Z
      intermediary method_38708 Lnet/minecraft/class_6624;method_38708()Z
      named isEmpty Lnet/minecraft/structure/StructurePiecesList;isEmpty()Z
    • contains

      public boolean contains(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Ldzv;a(Lhx;)Z
      intermediary method_38710 Lnet/minecraft/class_6624;method_38710(Lnet/minecraft/class_2338;)Z
      named contains Lnet/minecraft/structure/StructurePiecesList;contains(Lnet/minecraft/util/math/BlockPos;)Z
    • toNbt

      public NbtElement toNbt(StructureContext context)
      Mappings:
      Namespace Name Mixin selector
      official a Ldzv;a(Ldzw;)Ltk;
      intermediary method_38709 Lnet/minecraft/class_6624;method_38709(Lnet/minecraft/class_6625;)Lnet/minecraft/class_2520;
      named toNbt Lnet/minecraft/structure/StructurePiecesList;toNbt(Lnet/minecraft/structure/StructureContext;)Lnet/minecraft/nbt/NbtElement;
    • fromNbt

      public static StructurePiecesList fromNbt(NbtList list, StructureContext context)
      Mappings:
      Namespace Name Mixin selector
      official a Ldzv;a(Lst;Ldzw;)Ldzv;
      intermediary method_38711 Lnet/minecraft/class_6624;method_38711(Lnet/minecraft/class_2499;Lnet/minecraft/class_6625;)Lnet/minecraft/class_6624;
      named fromNbt Lnet/minecraft/structure/StructurePiecesList;fromNbt(Lnet/minecraft/nbt/NbtList;Lnet/minecraft/structure/StructureContext;)Lnet/minecraft/structure/StructurePiecesList;
    • getBoundingBox

      public BlockBox getBoundingBox()
      Mappings:
      Namespace Name Mixin selector
      official b Ldzv;b()Ldyy;
      intermediary method_38712 Lnet/minecraft/class_6624;method_38712()Lnet/minecraft/class_3341;
      named getBoundingBox Lnet/minecraft/structure/StructurePiecesList;getBoundingBox()Lnet/minecraft/util/math/BlockBox;
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • pieces

      public List<StructurePiece> pieces()
      Returns the value of the pieces record component.
      Returns:
      the value of the pieces record component