Record Class DamageIndicatorParticleOptions
java.lang.Object
java.lang.Record
tech.anonymoushacker1279.immersiveweapons.client.particle.damage_indicator.DamageIndicatorParticleOptions
- All Implemented Interfaces:
net.minecraft.core.particles.ParticleOptions
public record DamageIndicatorParticleOptions(float damage)
extends Record
implements net.minecraft.core.particles.ParticleOptions
-
Constructor Summary
ConstructorsConstructorDescriptionDamageIndicatorParticleOptions(float damage) Creates an instance of aDamageIndicatorParticleOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatdamage()Returns the value of thedamagerecord 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
-
DamageIndicatorParticleOptions
public DamageIndicatorParticleOptions(float damage) Creates an instance of aDamageIndicatorParticleOptionsrecord class.- Parameters:
damage- the value for thedamagerecord 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. -
damage
public float damage()Returns the value of thedamagerecord component.- Returns:
- the value of the
damagerecord component
-