Record Class PoolAliasBinding.RandomGroup
java.lang.Object
java.lang.Record
dev.wyck.worldgen.structure.pools.alias.PoolAliasBinding.RandomGroup
- Record Components:
groups- the groups of bindings to choose between
- All Implemented Interfaces:
PoolAliasBinding
- Enclosing interface:
PoolAliasBinding
@AsOf("3.4.0")
public static record PoolAliasBinding.RandomGroup(WeightedList<List<PoolAliasBinding>> groups)
extends Record
implements PoolAliasBinding
A binding that picks one weighted group of bindings and applies all of them.
- Since:
- 3.4.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface PoolAliasBinding
PoolAliasBinding.Direct, PoolAliasBinding.Random, PoolAliasBinding.RandomGroup -
Constructor Summary
ConstructorsConstructorDescriptionRandomGroup(WeightedList<List<PoolAliasBinding>> groups) Creates an instance of aRandomGrouprecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.groups()Returns the value of thegroupsrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RandomGroup
Creates an instance of aRandomGrouprecord class.- Parameters:
groups- the value for thegroupsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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
-