Record Class RandomStructurePoolAliasBinding
java.lang.Object
java.lang.Record
net.minecraft.structure.pool.alias.RandomStructurePoolAliasBinding
- Record Components:
- alias-
- targets-
- All Implemented Interfaces:
- StructurePoolAliasBinding
record RandomStructurePoolAliasBinding(RegistryKey<StructurePool> alias, DataPool<RegistryKey<StructurePool>> targets)
extends Record
implements StructurePoolAliasBinding
- Mappings:
- Namespace - Name - named - net/minecraft/structure/pool/alias/RandomStructurePoolAliasBinding- intermediary - net/minecraft/class_8892- official - epc- named - alias- intermediary - comp_2005- official - c- named - targets- intermediary - comp_2006- official - d
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final RegistryKey<StructurePool> The field for thealiasrecord component.(package private) static com.mojang.serialization.MapCodec<RandomStructurePoolAliasBinding> private final DataPool<RegistryKey<StructurePool>> The field for thetargetsrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionRandomStructurePoolAliasBinding(RegistryKey<StructurePool> registryKey, DataPool<RegistryKey<StructurePool>> dataPool) 
- 
Method SummaryModifier 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<RandomStructurePoolAliasBinding> getCodec()final inthashCode()Returns a hash code value for this object.targets()Returns the value of thetargetsrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
aliasThe field for thealiasrecord component.
- 
targetsThe field for thetargetsrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/structure/pool/alias/RandomStructurePoolAliasBinding;CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_46827- Lnet/minecraft/class_8892;field_46827:Lcom/mojang/serialization/MapCodec;- official - a- Lepc;a:Lcom/mojang/serialization/MapCodec;
 
 
- 
- 
Constructor Details- 
RandomStructurePoolAliasBindingRandomStructurePoolAliasBinding(RegistryKey<StructurePool> registryKey, DataPool<RegistryKey<StructurePool>> dataPool) 
 
- 
- 
Method Details- 
forEachpublic void forEach(Random random, BiConsumer<RegistryKey<StructurePool>, RegistryKey<StructurePool>> aliasConsumer) - Specified by:
- forEachin 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- Leoz;a(Lazh;Ljava/util/function/BiConsumer;)V
 
- 
streamTargets- Specified by:
- streamTargetsin 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- Leoz;a()Ljava/util/stream/Stream;
 
- 
getCodec- Specified by:
- getCodecin 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- Leoz;b()Lcom/mojang/serialization/MapCodec;
 
- 
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).
- 
aliasReturns the value of thealiasrecord component.- Returns:
- the value of the aliasrecord component
 
- 
targetsReturns the value of thetargetsrecord component.- Returns:
- the value of the targetsrecord component
 
 
-