Record Class WispParticleOptions
java.lang.Object
java.lang.Record
tech.anonymoushacker1279.immersiveweapons.client.particle.wisp.WispParticleOptions
- All Implemented Interfaces:
net.minecraft.core.particles.ParticleOptions
public record WispParticleOptions(int color)
extends Record
implements net.minecraft.core.particles.ParticleOptions
-
Constructor Summary
ConstructorsConstructorDescriptionWispParticleOptions(int color) Creates an instance of aWispParticleOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcolor()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.net.minecraft.core.particles.ParticleType<?> getType()final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WispParticleOptions
public WispParticleOptions(int color) Creates an instance of aWispParticleOptionsrecord class.- Parameters:
color- the value for thecolorrecord component
-
-
Method Details
-
getType
public net.minecraft.core.particles.ParticleType<?> getType()- Specified by:
getTypein interfacenet.minecraft.core.particles.ParticleOptions
-
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 with thecomparemethod from their corresponding wrapper classes. -
color
public int color()Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-