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 named net/minecraft/structure/StructurePiecesList
intermediary net/minecraft/class_6624
official ejm
named pieces
intermediary comp_132
official a
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Map
<Identifier, Identifier> private static final Identifier
private static final Logger
private final List
<StructurePiece> The field for thepieces
record component. -
Constructor Summary
ConstructorDescriptionStructurePiecesList
(List<StructurePiece> pieces) Creates an instance of aStructurePiecesList
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
final boolean
Indicates whether some other object is "equal to" this one.static StructurePiecesList
fromNbt
(NbtList list, StructureContext context) final int
hashCode()
Returns a hash code value for this object.boolean
isEmpty()
pieces()
Returns the value of thepieces
record component.toNbt
(StructureContext context) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
pieces
The field for thepieces
record component. -
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/structure/StructurePiecesList;LOGGER:Lorg/slf4j/Logger;
intermediary field_34941
Lnet/minecraft/class_6624;field_34941:Lorg/slf4j/Logger;
official b
Lejm;b:Lorg/slf4j/Logger;
-
JIGSAW
- Mappings:
Namespace Name Mixin selector named JIGSAW
Lnet/minecraft/structure/StructurePiecesList;JIGSAW:Lnet/minecraft/util/Identifier;
intermediary field_34942
Lnet/minecraft/class_6624;field_34942:Lnet/minecraft/class_2960;
official c
Lejm;c:Lakk;
-
ID_UPDATES
- Mappings:
Namespace Name Mixin selector named ID_UPDATES
Lnet/minecraft/structure/StructurePiecesList;ID_UPDATES:Ljava/util/Map;
intermediary field_34943
Lnet/minecraft/class_6624;field_34943:Ljava/util/Map;
official d
Lejm;d:Ljava/util/Map;
-
-
Constructor Details
-
StructurePiecesList
Creates an instance of aStructurePiecesList
record class.- Parameters:
pieces
- the value for thepieces
record component
-
-
Method Details
-
isEmpty
public boolean isEmpty()- Mappings:
Namespace Name Mixin selector named isEmpty
Lnet/minecraft/structure/StructurePiecesList;isEmpty()Z
intermediary method_38708
Lnet/minecraft/class_6624;method_38708()Z
official a
Lejm;a()Z
-
contains
- Mappings:
Namespace Name Mixin selector named contains
Lnet/minecraft/structure/StructurePiecesList;contains(Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_38710
Lnet/minecraft/class_6624;method_38710(Lnet/minecraft/class_2338;)Z
official a
Lejm;a(Lja;)Z
-
toNbt
- Mappings:
Namespace Name Mixin selector named toNbt
Lnet/minecraft/structure/StructurePiecesList;toNbt(Lnet/minecraft/structure/StructureContext;)Lnet/minecraft/nbt/NbtElement;
intermediary method_38709
Lnet/minecraft/class_6624;method_38709(Lnet/minecraft/class_6625;)Lnet/minecraft/class_2520;
official a
Lejm;a(Lejn;)Luu;
-
fromNbt
- Mappings:
Namespace Name Mixin selector named fromNbt
Lnet/minecraft/structure/StructurePiecesList;fromNbt(Lnet/minecraft/nbt/NbtList;Lnet/minecraft/structure/StructureContext;)Lnet/minecraft/structure/StructurePiecesList;
intermediary method_38711
Lnet/minecraft/class_6624;method_38711(Lnet/minecraft/class_2499;Lnet/minecraft/class_6625;)Lnet/minecraft/class_6624;
official a
Lejm;a(Lud;Lejn;)Lejm;
-
getBoundingBox
- Mappings:
Namespace Name Mixin selector named getBoundingBox
Lnet/minecraft/structure/StructurePiecesList;getBoundingBox()Lnet/minecraft/util/math/BlockBox;
intermediary method_38712
Lnet/minecraft/class_6624;method_38712()Lnet/minecraft/class_3341;
official b
Lejm;b()Leip;
-
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 thepieces
record component.- Returns:
- the value of the
pieces
record component
-