Package net.minecraft.client.particle
Class FireflyParticle
java.lang.Object
net.minecraft.client.particle.Particle
net.minecraft.client.particle.SingleQuadParticle
net.minecraft.client.particle.TextureSheetParticle
net.minecraft.client.particle.FireflyParticle
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.client.particle.SingleQuadParticle
SingleQuadParticle.FacingCameraModeNested 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 intFields inherited from class net.minecraft.client.particle.TextureSheetParticle
spriteFields inherited from class net.minecraft.client.particle.SingleQuadParticle
quadSize -
Constructor Summary
ConstructorsConstructorDescriptionFireflyParticle(ClientLevel p_401114_, double p_401068_, double p_401435_, double p_401238_, double p_401102_, double p_401330_, double p_401419_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static floatgetFadeAmount(float pLifetimeProgress, float pFadeIn, float pFadeOut) private floatgetLifetimeProgress(float pAge) intgetLightColor(float p_401057_) voidtick()Methods inherited from class net.minecraft.client.particle.TextureSheetParticle
getU0, getU1, getV0, getV1, pickSprite, setSprite, setSpriteFromAgeMethods inherited from class net.minecraft.client.particle.SingleQuadParticle
getFacingCameraMode, getQuadSize, getRenderBoundingBox, render, renderRotatedQuad, renderRotatedQuad, scaleMethods inherited from class net.minecraft.client.particle.Particle
getBoundingBox, getLifetime, getParticleGroup, getPos, isAlive, move, remove, renderCustom, setAlpha, setBoundingBox, setColor, setLifetime, setLocationFromBoundingbox, setParticleSpeed, setPos, setPower, setSize, toString
-
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_)
-
-
Method Details
-
getRenderType
- Specified by:
getRenderTypein classParticle
-
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)
-