Record Class PoolAliasBinding.Direct
java.lang.Object
java.lang.Record
dev.wyck.worldgen.structure.pools.alias.PoolAliasBinding.Direct
- Record Components:
alias- the pool pieces nametarget- the pool they are generated from
- All Implemented Interfaces:
PoolAliasBinding
- Enclosing interface:
PoolAliasBinding
@AsOf("3.4.0")
public static record PoolAliasBinding.Direct(TemplatePool alias, TemplatePool target)
extends Record
implements PoolAliasBinding
A binding that always resolves the alias to the same target.
- Since:
- 3.4.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface PoolAliasBinding
PoolAliasBinding.Direct, PoolAliasBinding.Random, PoolAliasBinding.RandomGroup -
Constructor Summary
ConstructorsConstructorDescriptionDirect(TemplatePool alias, TemplatePool target) Creates an instance of aDirectrecord 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.target()Returns the value of thetargetrecord 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
-
target
-