Class FireflyParticle
java.lang.Object
net.minecraft.client.particle.Particle
net.minecraft.client.particle.SingleQuadParticle
net.minecraft.client.particle.FireflyParticle
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class SingleQuadParticle
SingleQuadParticle.FacingCameraMode, SingleQuadParticle.LayerNested classes/interfaces inherited from class Particle
Particle.LifetimeAlpha -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final floatprivate static final floatprivate static final floatprivate static final floatprivate static final intprivate static final int -
Constructor Summary
ConstructorsConstructorDescriptionFireflyParticle(ClientLevel level, double x, double y, double z, double xa, double ya, double za, TextureAtlasSprite sprite) -
Method Summary
Modifier and TypeMethodDescriptionprivate static floatgetFadeAmount(float lifetimeProgress, float fadeInTime, float fadeOutTime) getLayer()private floatgetLifetimeProgress(float currentAge) intgetLightCoords(float a) voidtick()Methods inherited from class SingleQuadParticle
extract, extractRotatedQuad, extractRotatedQuad, getFacingCameraMode, getGroup, getQuadSize, getU0, getU1, getV0, getV1, scale, setAlpha, setColor, setSprite, setSpriteFromAge, toStringMethods inherited from class Particle
getBoundingBox, getLifetime, getParticleLimit, getPos, isAlive, move, remove, setBoundingBox, setLifetime, setLocationFromBoundingbox, setParticleSpeed, setPos, setPower, setSize
-
Field Details
-
PARTICLE_FADE_OUT_LIGHT_TIME
private static final float PARTICLE_FADE_OUT_LIGHT_TIME- See Also:
-
PARTICLE_FADE_IN_LIGHT_TIME
private static final float PARTICLE_FADE_IN_LIGHT_TIME- See Also:
-
PARTICLE_FADE_OUT_ALPHA_TIME
private static final float PARTICLE_FADE_OUT_ALPHA_TIME- See Also:
-
PARTICLE_FADE_IN_ALPHA_TIME
private static final float PARTICLE_FADE_IN_ALPHA_TIME- See Also:
-
PARTICLE_MIN_LIFETIME
private static final int PARTICLE_MIN_LIFETIME- See Also:
-
PARTICLE_MAX_LIFETIME
private static final int PARTICLE_MAX_LIFETIME- See Also:
-
-
Constructor Details
-
FireflyParticle
public FireflyParticle(ClientLevel level, double x, double y, double z, double xa, double ya, double za, TextureAtlasSprite sprite)
-
-
Method Details
-
getLayer
- Specified by:
getLayerin classSingleQuadParticle
-
getLightCoords
public int getLightCoords(float a) - Overrides:
getLightCoordsin classParticle
-
tick
-
getLifetimeProgress
private float getLifetimeProgress(float currentAge) -
getFadeAmount
private static float getFadeAmount(float lifetimeProgress, float fadeInTime, float fadeOutTime)
-