Record Class PoolAliasBinding.Random
java.lang.Object
java.lang.Record
dev.wyck.worldgen.structure.pools.alias.PoolAliasBinding.Random
- Record Components:
alias- the pool pieces nametargets- the pools it may resolve to
- All Implemented Interfaces:
PoolAliasBinding
- Enclosing interface:
PoolAliasBinding
@AsOf("3.4.0")
public static record PoolAliasBinding.Random(TemplatePool alias, WeightedList<TemplatePool> targets)
extends Record
implements PoolAliasBinding
A binding that resolves the alias to one weighted target.
- Since:
- 3.4.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface PoolAliasBinding
PoolAliasBinding.Direct, PoolAliasBinding.Random, PoolAliasBinding.RandomGroup -
Constructor Summary
ConstructorsConstructorDescriptionRandom(TemplatePool alias, WeightedList<TemplatePool> targets) Creates an instance of aRandomrecord class. -
Method Summary
Modifier and TypeMethodDescriptionalias()Returns the value of thealiasrecord component.final booleanIndicates whether some other object is "equal to" this one.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.
-
Constructor Details
-
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). -
alias
-
targets
-