Package net.minecraft.structure
Record Class StructurePiecesList
java.lang.Object
java.lang.Record
net.minecraft.structure.StructurePiecesList
- Record Components:
pieces-
An immutable list of structure pieces, usually belonging to a structure
start.
- Mappings:
Namespace Name official dktintermediary net/minecraft/class_6624named net/minecraft/structure/StructurePiecesListofficial aintermediary comp_132named pieces
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map<Identifier,Identifier> private static final Identifierprivate static final org.slf4j.Loggerprivate final List<StructurePiece>The field for thepiecesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionStructurePiecesList(List<StructurePiece> pieces) Creates an instance of aStructurePiecesListrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanfinal booleanIndicates whether some other object is "equal to" this one.static StructurePiecesListfromNbt(NbtList list, StructureContext context) final inthashCode()Returns a hash code value for this object.booleanisEmpty()pieces()Returns the value of thepiecesrecord component.toNbt(StructureContext context) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
pieces
The field for thepiecesrecord component. -
LOGGER
private static final org.slf4j.Logger LOGGER- Mappings:
Namespace Name Mixin selector official bLdkt;b:Lorg/slf4j/Logger;intermediary field_34941Lnet/minecraft/class_6624;field_34941:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/structure/StructurePiecesList;LOGGER:Lorg/slf4j/Logger;
-
JIGSAW
- Mappings:
Namespace Name Mixin selector official cLdkt;c:Laaj;intermediary field_34942Lnet/minecraft/class_6624;field_34942:Lnet/minecraft/class_2960;named JIGSAWLnet/minecraft/structure/StructurePiecesList;JIGSAW:Lnet/minecraft/util/Identifier;
-
ID_UPDATES
- Mappings:
Namespace Name Mixin selector official dLdkt;d:Ljava/util/Map;intermediary field_34943Lnet/minecraft/class_6624;field_34943:Ljava/util/Map;named ID_UPDATESLnet/minecraft/structure/StructurePiecesList;ID_UPDATES:Ljava/util/Map;
-
-
Constructor Details
-
StructurePiecesList
Creates an instance of aStructurePiecesListrecord class.- Parameters:
pieces- the value for thepiecesrecord component
-
-
Method Details
-
isEmpty
public boolean isEmpty()- Mappings:
Namespace Name Mixin selector official aLdkt;a()Zintermediary method_38708Lnet/minecraft/class_6624;method_38708()Znamed isEmptyLnet/minecraft/structure/StructurePiecesList;isEmpty()Z
-
contains
- Mappings:
Namespace Name Mixin selector official aLdkt;a(Lgt;)Zintermediary method_38710Lnet/minecraft/class_6624;method_38710(Lnet/minecraft/class_2338;)Znamed containsLnet/minecraft/structure/StructurePiecesList;contains(Lnet/minecraft/util/math/BlockPos;)Z
-
toNbt
- Mappings:
Namespace Name Mixin selector official aLdkt;a(Ldku;)Lqc;intermediary method_38709Lnet/minecraft/class_6624;method_38709(Lnet/minecraft/class_6625;)Lnet/minecraft/class_2520;named toNbtLnet/minecraft/structure/StructurePiecesList;toNbt(Lnet/minecraft/structure/StructureContext;)Lnet/minecraft/nbt/NbtElement;
-
fromNbt
- Mappings:
Namespace Name Mixin selector official aLdkt;a(Lpp;Ldku;)Ldkt;intermediary method_38711Lnet/minecraft/class_6624;method_38711(Lnet/minecraft/class_2499;Lnet/minecraft/class_6625;)Lnet/minecraft/class_6624;named fromNbtLnet/minecraft/structure/StructurePiecesList;fromNbt(Lnet/minecraft/nbt/NbtList;Lnet/minecraft/structure/StructureContext;)Lnet/minecraft/structure/StructurePiecesList;
-
getBoundingBox
- Mappings:
Namespace Name Mixin selector official bLdkt;b()Ldjw;intermediary method_38712Lnet/minecraft/class_6624;method_38712()Lnet/minecraft/class_3341;named getBoundingBoxLnet/minecraft/structure/StructurePiecesList;getBoundingBox()Lnet/minecraft/util/math/BlockBox;
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
pieces
Returns the value of thepiecesrecord component.- Returns:
- the value of the
piecesrecord component
-