Record Class LodestoneScreenParticleType.Factory
java.lang.Object
java.lang.Record
team.lodestar.lodestone.modules.rendering.particle.old_particle_system.screen.LodestoneScreenParticleType.Factory
- All Implemented Interfaces:
ScreenParticleType.ParticleProvider<ScreenParticleOptions>
- Enclosing class:
LodestoneScreenParticleType
public static record LodestoneScreenParticleType.Factory(net.minecraft.client.particle.SpriteSet sprite)
extends Record
implements ScreenParticleType.ParticleProvider<ScreenParticleOptions>
-
Constructor Summary
ConstructorsConstructorDescriptionFactory(net.minecraft.client.particle.SpriteSet sprite) Creates an instance of aFactoryrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncreateParticle(net.minecraft.client.multiplayer.ClientLevel pLevel, ScreenParticleOptions options, double x, double y, double pXSpeed, double pYSpeed) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.client.particle.SpriteSetsprite()Returns the value of thespriterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Factory
public Factory(net.minecraft.client.particle.SpriteSet sprite) Creates an instance of aFactoryrecord class.- Parameters:
sprite- the value for thespriterecord component
-
-
Method Details
-
createParticle
public ScreenParticle createParticle(net.minecraft.client.multiplayer.ClientLevel pLevel, ScreenParticleOptions options, double x, double y, double pXSpeed, double pYSpeed) - Specified by:
createParticlein interfaceScreenParticleType.ParticleProvider<ScreenParticleOptions>
-
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). -
sprite
public net.minecraft.client.particle.SpriteSet sprite()Returns the value of thespriterecord component.- Returns:
- the value of the
spriterecord component
-