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 ejd
named structures
intermediary comp_510
official c
named placement
intermediary comp_511
official d
  • Field Details

    • structures

      private final List<StructureSet.WeightedEntry> structures
      The field for the structures record component.
    • placement

      private final StructurePlacement placement
      The field for the placement record component.
    • CODEC

      public static final com.mojang.serialization.Codec<StructureSet> 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 Lejd;a:Lcom/mojang/serialization/Codec;
    • REGISTRY_CODEC

      public static final com.mojang.serialization.Codec<RegistryEntry<StructureSet>> 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 Lejd;b:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • StructureSet

      public StructureSet(RegistryEntry<Structure> structure, StructurePlacement placement)
      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> Lejd;<init>(Ljj;Leju;)V
    • StructureSet

      public StructureSet(List<StructureSet.WeightedEntry> list, StructurePlacement structurePlacement)
  • Method Details

    • createEntry

      public 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 Lejd;a(Ljj;I)Lejd$a;
    • createEntry

      public static StructureSet.WeightedEntry createEntry(RegistryEntry<Structure> structure)
      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 Lejd;a(Ljj;)Lejd$a;
    • 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.
    • structures

      public List<StructureSet.WeightedEntry> structures()
      Returns the value of the structures record component.
      Returns:
      the value of the structures record component
    • placement

      public StructurePlacement placement()
      Returns the value of the placement record component.
      Returns:
      the value of the placement record component