Package net.minecraft.client.particle
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 net.minecraft.client.particle.SingleQuadParticle
SingleQuadParticle.FacingCameraMode, SingleQuadParticle.LayerNested classes/interfaces inherited from class net.minecraft.client.particle.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 p_401114_, double p_401068_, double p_401435_, double p_401238_, double p_401102_, double p_401330_, double p_401419_, TextureAtlasSprite p_446415_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static floatgetFadeAmount(float pLifetimeProgress, float pFadeIn, float pFadeOut) getLayer()private floatgetLifetimeProgress(float pAge) intgetLightColor(float p_401057_) voidtick()Methods inherited from class net.minecraft.client.particle.SingleQuadParticle
extract, extractRotatedQuad, extractRotatedQuad, getFacingCameraMode, getGroup, getQuadSize, getU0, getU1, getV0, getV1, scale, setAlpha, setColor, setSprite, setSpriteFromAge, toStringMethods inherited from class net.minecraft.client.particle.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 p_401114_, double p_401068_, double p_401435_, double p_401238_, double p_401102_, double p_401330_, double p_401419_, TextureAtlasSprite p_446415_)
-
-
Method Details
-
getLayer
- Specified by:
getLayerin classSingleQuadParticle
-
getLightColor
public int getLightColor(float p_401057_) - Overrides:
getLightColorin classParticle
-
tick
public void tick() -
getLifetimeProgress
private float getLifetimeProgress(float pAge) -
getFadeAmount
private static float getFadeAmount(float pLifetimeProgress, float pFadeIn, float pFadeOut)
-