Package net.minecraft.structure
Record Class StructureSet
java.lang.Object
java.lang.Record
net.minecraft.structure.StructureSet
- Record Components:
- structures-
- placement-
public record StructureSet(List<StructureSet.WeightedEntry> structures, StructurePlacement placement)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/structure/StructureSet- intermediary - net/minecraft/class_7059- official - ent- named - structures- intermediary - comp_510- official - c- named - placement- intermediary - comp_511- official - d
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<StructureSet> private final StructurePlacementThe field for theplacementrecord component.static final com.mojang.serialization.Codec<RegistryEntry<StructureSet>> private final List<StructureSet.WeightedEntry> The field for thestructuresrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionStructureSet(List<StructureSet.WeightedEntry> list, StructurePlacement structurePlacement) StructureSet(RegistryEntry<Structure> structure, StructurePlacement placement) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic StructureSet.WeightedEntrycreateEntry(RegistryEntry<Structure> structure) static StructureSet.WeightedEntrycreateEntry(RegistryEntry<Structure> structure, int weight) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theplacementrecord component.Returns the value of thestructuresrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
structuresThe field for thestructuresrecord component.
- 
placementThe field for theplacementrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/structure/StructureSet;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_37195- Lnet/minecraft/class_7059;field_37195:Lcom/mojang/serialization/Codec;- official - a- Lent;a:Lcom/mojang/serialization/Codec;
 
- 
REGISTRY_CODEC- Mappings:
- Namespace - Name - Mixin selector - named - REGISTRY_CODEC- Lnet/minecraft/structure/StructureSet;REGISTRY_CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_37196- Lnet/minecraft/class_7059;field_37196:Lcom/mojang/serialization/Codec;- official - b- Lent;b:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
StructureSet- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/structure/StructureSet;<init>(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;)V- intermediary - <init>- Lnet/minecraft/class_7059;<init>(Lnet/minecraft/class_6880;Lnet/minecraft/class_6874;)V- official - <init>- Lent;<init>(Ljr;Leok;)V
 
- 
StructureSet
 
- 
- 
Method Details- 
createEntrypublic static StructureSet.WeightedEntry createEntry(RegistryEntry<Structure> structure, int weight) - Mappings:
- Namespace - Name - Mixin selector - named - createEntry- Lnet/minecraft/structure/StructureSet;createEntry(Lnet/minecraft/registry/entry/RegistryEntry;I)Lnet/minecraft/structure/StructureSet$WeightedEntry;- intermediary - method_41146- Lnet/minecraft/class_7059;method_41146(Lnet/minecraft/class_6880;I)Lnet/minecraft/class_7059$class_7060;- official - a- Lent;a(Ljr;I)Lent$a;
 
- 
createEntry- Mappings:
- Namespace - Name - Mixin selector - named - createEntry- Lnet/minecraft/structure/StructureSet;createEntry(Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/structure/StructureSet$WeightedEntry;- intermediary - method_41145- Lnet/minecraft/class_7059;method_41145(Lnet/minecraft/class_6880;)Lnet/minecraft/class_7059$class_7060;- official - a- Lent;a(Ljr;)Lent$a;
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
structuresReturns the value of thestructuresrecord component.- Returns:
- the value of the structuresrecord component
 
- 
placementReturns the value of theplacementrecord component.- Returns:
- the value of the placementrecord component
 
 
-