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/DirectStructurePoolAliasBindingintermediary net/minecraft/class_8888official elcnamed aliasintermediary comp_2003official cnamed targetintermediary comp_2004official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RegistryKey<StructurePool> The field for thealiasrecord component.(package private) static com.mojang.serialization.MapCodec<DirectStructurePoolAliasBinding> private final RegistryKey<StructurePool> The field for thetargetrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDirectStructurePoolAliasBinding(RegistryKey<StructurePool> registryKey, RegistryKey<StructurePool> registryKey2) -
Method Summary
Modifier and TypeMethodDescriptionalias()Returns the value of thealiasrecord component.final booleanIndicates whether some other object is "equal to" this one.voidforEach(Random random, BiConsumer<RegistryKey<StructurePool>, RegistryKey<StructurePool>> aliasConsumer) com.mojang.serialization.MapCodec<DirectStructurePoolAliasBinding> getCodec()final inthashCode()Returns a hash code value for this object.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
alias
The field for thealiasrecord component. -
target
The field for thetargetrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/structure/pool/alias/DirectStructurePoolAliasBinding;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_46824Lnet/minecraft/class_8888;field_46824:Lcom/mojang/serialization/MapCodec;official aLelc;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
DirectStructurePoolAliasBinding
DirectStructurePoolAliasBinding(RegistryKey<StructurePool> registryKey, RegistryKey<StructurePool> registryKey2)
-
-
Method Details
-
forEach
public void forEach(Random random, BiConsumer<RegistryKey<StructurePool>, RegistryKey<StructurePool>> aliasConsumer) - Specified by:
forEachin interfaceStructurePoolAliasBinding- Mappings:
Namespace Name Mixin selector named forEachLnet/minecraft/structure/pool/alias/StructurePoolAliasBinding;forEach(Lnet/minecraft/util/math/random/Random;Ljava/util/function/BiConsumer;)Vintermediary method_54500Lnet/minecraft/class_8889;method_54500(Lnet/minecraft/class_5819;Ljava/util/function/BiConsumer;)Vofficial aLeld;a(Layw;Ljava/util/function/BiConsumer;)V
-
streamTargets
- Specified by:
streamTargetsin interfaceStructurePoolAliasBinding- Mappings:
Namespace Name Mixin selector named streamTargetsLnet/minecraft/structure/pool/alias/StructurePoolAliasBinding;streamTargets()Ljava/util/stream/Stream;intermediary method_54499Lnet/minecraft/class_8889;method_54499()Ljava/util/stream/Stream;official aLeld;a()Ljava/util/stream/Stream;
-
getCodec
- Specified by:
getCodecin interfaceStructurePoolAliasBinding- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/structure/pool/alias/StructurePoolAliasBinding;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_54502Lnet/minecraft/class_8889;method_54502()Lcom/mojang/serialization/MapCodec;official bLeld;b()Lcom/mojang/serialization/MapCodec;
-
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). -
alias
Returns the value of thealiasrecord component.- Returns:
- the value of the
aliasrecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-