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.FacingCameraMode
Nested classes/interfaces inherited from class net.minecraft.client.particle.Particle
Particle.LifetimeAlpha
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final float
private static final float
private static final float
private static final float
private static final int
private static final int
Fields inherited from class net.minecraft.client.particle.TextureSheetParticle
sprite
Fields 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 float
getFadeAmount
(float p_405677_, float p_405084_, float p_405474_) private float
getLifetimeProgress
(float p_405074_) int
getLightColor
(float p_401057_) void
tick()
Methods inherited from class net.minecraft.client.particle.TextureSheetParticle
getU0, getU1, getV0, getV1, pickSprite, setSprite, setSpriteFromAge
Methods inherited from class net.minecraft.client.particle.SingleQuadParticle
getFacingCameraMode, getQuadSize, getRenderBoundingBox, render, renderRotatedQuad, renderRotatedQuad, scale
Methods 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:
getRenderType
in classParticle
-
getLightColor
public int getLightColor(float p_401057_) - Overrides:
getLightColor
in classParticle
-
tick
public void tick() -
getLifetimeProgress
private float getLifetimeProgress(float p_405074_) -
getFadeAmount
private static float getFadeAmount(float p_405677_, float p_405084_, float p_405474_)
-