Record Class RandomGroupStructurePoolAliasBinding
java.lang.Object
java.lang.Record
net.minecraft.structure.pool.alias.RandomGroupStructurePoolAliasBinding
- Record Components:
groups
-
- All Implemented Interfaces:
StructurePoolAliasBinding
record RandomGroupStructurePoolAliasBinding(DataPool<List<StructurePoolAliasBinding>> groups)
extends Record
implements StructurePoolAliasBinding
- Mappings:
Namespace Name official eav
intermediary net/minecraft/class_8893
named net/minecraft/structure/pool/alias/RandomGroupStructurePoolAliasBinding
official c
intermediary comp_2007
named groups
-
Field Summary
Modifier and TypeFieldDescription(package private) static com.mojang.serialization.Codec<RandomGroupStructurePoolAliasBinding>
private final DataPool<List<StructurePoolAliasBinding>>
The field for thegroups
record component. -
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.void
forEach
(Random random, BiConsumer<RegistryKey<StructurePool>, RegistryKey<StructurePool>> aliasConsumer) com.mojang.serialization.Codec<RandomGroupStructurePoolAliasBinding>
getCodec()
groups()
Returns the value of thegroups
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
groups
The field for thegroups
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector official a
Leav;a:Lcom/mojang/serialization/Codec;
intermediary field_46828
Lnet/minecraft/class_8893;field_46828:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/structure/pool/alias/RandomGroupStructurePoolAliasBinding;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
RandomGroupStructurePoolAliasBinding
RandomGroupStructurePoolAliasBinding(DataPool<List<StructurePoolAliasBinding>> dataPool)
-
-
Method Details
-
forEach
public void forEach(Random random, BiConsumer<RegistryKey<StructurePool>, RegistryKey<StructurePool>> aliasConsumer) - Specified by:
forEach
in interfaceStructurePoolAliasBinding
- Mappings:
Namespace Name Mixin selector official a
Lear;a(Lauv;Ljava/util/function/BiConsumer;)V
intermediary method_54500
Lnet/minecraft/class_8889;method_54500(Lnet/minecraft/class_5819;Ljava/util/function/BiConsumer;)V
named forEach
Lnet/minecraft/structure/pool/alias/StructurePoolAliasBinding;forEach(Lnet/minecraft/util/math/random/Random;Ljava/util/function/BiConsumer;)V
-
streamTargets
- Specified by:
streamTargets
in interfaceStructurePoolAliasBinding
- Mappings:
Namespace Name Mixin selector official a
Lear;a()Ljava/util/stream/Stream;
intermediary method_54499
Lnet/minecraft/class_8889;method_54499()Ljava/util/stream/Stream;
named streamTargets
Lnet/minecraft/structure/pool/alias/StructurePoolAliasBinding;streamTargets()Ljava/util/stream/Stream;
-
getCodec
- Specified by:
getCodec
in interfaceStructurePoolAliasBinding
- Mappings:
Namespace Name Mixin selector official b
Lear;b()Lcom/mojang/serialization/Codec;
intermediary method_54502
Lnet/minecraft/class_8889;method_54502()Lcom/mojang/serialization/Codec;
named getCodec
Lnet/minecraft/structure/pool/alias/StructurePoolAliasBinding;getCodec()Lcom/mojang/serialization/Codec;
-
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)
. -
groups
Returns the value of thegroups
record component.- Returns:
- the value of the
groups
record component
-