Record Class DirectStructurePoolAliasBinding

java.lang.Object
java.lang.Record
net.minecraft.structure.pool.alias.DirectStructurePoolAliasBinding
Record Components:
alias -
target -
All Implemented Interfaces:
StructurePoolAliasBinding

record DirectStructurePoolAliasBinding(RegistryKey<StructurePool> alias, RegistryKey<StructurePool> target) extends Record implements StructurePoolAliasBinding
Mappings:
Namespace Name
named net/minecraft/structure/pool/alias/DirectStructurePoolAliasBinding
intermediary net/minecraft/class_8888
official elc
named alias
intermediary comp_2003
official c
named target
intermediary comp_2004
official d
  • Field Details

    • alias

      private final RegistryKey<StructurePool> alias
      The field for the alias record component.
    • target

      private final RegistryKey<StructurePool> target
      The field for the target record component.
    • CODEC

      static com.mojang.serialization.MapCodec<DirectStructurePoolAliasBinding> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/structure/pool/alias/DirectStructurePoolAliasBinding;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_46824 Lnet/minecraft/class_8888;field_46824:Lcom/mojang/serialization/MapCodec;
      official a Lelc;a:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

  • Method Details

    • forEach

      public void forEach(Random random, BiConsumer<RegistryKey<StructurePool>,RegistryKey<StructurePool>> aliasConsumer)
      Specified by:
      forEach in interface StructurePoolAliasBinding
      Mappings:
      Namespace Name Mixin selector
      named forEach Lnet/minecraft/structure/pool/alias/StructurePoolAliasBinding;forEach(Lnet/minecraft/util/math/random/Random;Ljava/util/function/BiConsumer;)V
      intermediary method_54500 Lnet/minecraft/class_8889;method_54500(Lnet/minecraft/class_5819;Ljava/util/function/BiConsumer;)V
      official a Leld;a(Layw;Ljava/util/function/BiConsumer;)V
    • streamTargets

      public Stream<RegistryKey<StructurePool>> streamTargets()
      Specified by:
      streamTargets in interface StructurePoolAliasBinding
      Mappings:
      Namespace Name Mixin selector
      named streamTargets Lnet/minecraft/structure/pool/alias/StructurePoolAliasBinding;streamTargets()Ljava/util/stream/Stream;
      intermediary method_54499 Lnet/minecraft/class_8889;method_54499()Ljava/util/stream/Stream;
      official a Leld;a()Ljava/util/stream/Stream;
    • getCodec

      public com.mojang.serialization.MapCodec<DirectStructurePoolAliasBinding> getCodec()
      Specified by:
      getCodec in interface StructurePoolAliasBinding
      Mappings:
      Namespace Name Mixin selector
      named getCodec Lnet/minecraft/structure/pool/alias/StructurePoolAliasBinding;getCodec()Lcom/mojang/serialization/MapCodec;
      intermediary method_54502 Lnet/minecraft/class_8889;method_54502()Lcom/mojang/serialization/MapCodec;
      official b Leld;b()Lcom/mojang/serialization/MapCodec;
    • 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.
    • alias

      public RegistryKey<StructurePool> alias()
      Returns the value of the alias record component.
      Returns:
      the value of the alias record component
    • target

      public RegistryKey<StructurePool> target()
      Returns the value of the target record component.
      Returns:
      the value of the target record component