Record Class BulletImpactParticleOptions
java.lang.Object
java.lang.Record
tech.anonymoushacker1279.immersiveweapons.client.particle.bullet_impact.BulletImpactParticleOptions
- All Implemented Interfaces:
net.minecraft.core.particles.ParticleOptions
public record BulletImpactParticleOptions(float scale, int blockID)
extends Record
implements net.minecraft.core.particles.ParticleOptions
-
Constructor Summary
ConstructorsConstructorDescriptionBulletImpactParticleOptions(float scale, int blockID) Creates an instance of aBulletImpactParticleOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintblockID()Returns the value of theblockIDrecord component.final booleanIndicates whether some other object is "equal to" this one.net.minecraft.core.particles.ParticleType<BulletImpactParticleOptions> getType()final inthashCode()Returns a hash code value for this object.floatscale()Returns the value of thescalerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BulletImpactParticleOptions
public BulletImpactParticleOptions(float scale, int blockID) Creates an instance of aBulletImpactParticleOptionsrecord class.- Parameters:
scale- the value for thescalerecord componentblockID- the value for theblockIDrecord component
-
-
Method Details
-
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. -
scale
public float scale()Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
blockID
public int blockID()Returns the value of theblockIDrecord component.- Returns:
- the value of the
blockIDrecord component
-