Record Class ParticleColor.Random
java.lang.Object
java.lang.Record
org.geysermc.geyser.level.particle.ParticleColor.Random
- All Implemented Interfaces:
ParticleColor
- Enclosing interface:
ParticleColor
public static record ParticleColor.Random(String variable, List<Integer> values)
extends Record
implements ParticleColor
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.geysermc.geyser.level.particle.ParticleColor
ParticleColor.Constant, ParticleColor.Random -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintapply(ParticleRandomization randomization) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.values()Returns the value of thevaluesrecord component.variable()Returns the value of thevariablerecord component.
-
Constructor Details
-
Random
Creates an instance of aRandomrecord class.- Parameters:
variable- the value for thevariablerecord componentvalues- the value for thevaluesrecord component
-
-
Method Details
-
apply
- Specified by:
applyin interfaceParticleColor
-
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). -
variable
Returns the value of thevariablerecord component.- Specified by:
variablein interfaceParticleColor- Returns:
- the value of the
variablerecord component
-
values
Returns the value of thevaluesrecord component.- Returns:
- the value of the
valuesrecord component
-