Package net.minecraft.client.particle
Class FireworkParticles.SparkParticle
java.lang.Object
net.minecraft.client.particle.Particle
net.minecraft.client.particle.SingleQuadParticle
net.minecraft.client.particle.TextureSheetParticle
net.minecraft.client.particle.SimpleAnimatedParticle
net.minecraft.client.particle.FireworkParticles.SparkParticle
- Enclosing class:
- FireworkParticles
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ParticleEngine
private float
private float
private float
private boolean
private boolean
private boolean
Fields inherited from class net.minecraft.client.particle.SimpleAnimatedParticle
sprites
Fields inherited from class net.minecraft.client.particle.TextureSheetParticle
sprite
Fields inherited from class net.minecraft.client.particle.SingleQuadParticle
quadSize
-
Constructor Summary
ConstructorDescriptionSparkParticle
(ClientLevel p_106702_, double p_106703_, double p_106704_, double p_106705_, double p_106706_, double p_106707_, double p_106708_, ParticleEngine p_106709_, SpriteSet p_106710_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
render
(VertexConsumer p_106724_, Camera p_106725_, float p_106726_) void
setFlicker
(boolean p_106730_) void
setTrail
(boolean p_106728_) void
tick()
Methods inherited from class net.minecraft.client.particle.SimpleAnimatedParticle
getLightColor, getRenderType, setColor, setFadeColor
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
getQuadSize, scale
Methods inherited from class net.minecraft.client.particle.Particle
getBoundingBox, getLifetime, getParticleGroup, isAlive, move, remove, setAlpha, setBoundingBox, setColor, setLifetime, setLocationFromBoundingbox, setParticleSpeed, setPos, setPower, setSize, shouldCull, toString
-
Field Details
-
trail
private boolean trail -
flicker
private boolean flicker -
engine
-
fadeR
private float fadeR -
fadeG
private float fadeG -
fadeB
private float fadeB -
hasFade
private boolean hasFade
-
-
Constructor Details
-
SparkParticle
SparkParticle(ClientLevel p_106702_, double p_106703_, double p_106704_, double p_106705_, double p_106706_, double p_106707_, double p_106708_, ParticleEngine p_106709_, SpriteSet p_106710_)
-
-
Method Details
-
setTrail
public void setTrail(boolean p_106728_) -
setFlicker
public void setFlicker(boolean p_106730_) -
render
- Overrides:
render
in classSingleQuadParticle
-
tick
public void tick()- Overrides:
tick
in classSimpleAnimatedParticle
-