Record Class Noise.Reference
java.lang.Object
java.lang.Record
dev.wyck.wrapper.level.noise.Noise.Reference
- Record Components:
key- the key of the noise function
- All Implemented Interfaces:
Noise
- Enclosing interface:
Noise
@AsOf("2.4.0")
public static record Noise.Reference(ResourceKey key)
extends Record
implements Noise
A reference to a noise function.
- Since:
- 2.4.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface Noise
Noise.Reference -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Reference
Creates an instance of aReferencerecord class.- Parameters:
key- the value for thekeyrecord 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). -
key
Returns the value of thekeyrecord component.
-