Class SingleQuadParticle
java.lang.Object
net.minecraft.client.particle.Particle
net.minecraft.client.particle.SingleQuadParticle
- Direct Known Subclasses:
AttackSweepParticle, BaseAshSmokeParticle, BlockMarker, BreakingItemParticle, BubbleColumnUpParticle, BubbleParticle, BubblePopParticle, CampfireSmokeParticle, CritParticle, DragonBreathParticle, DripParticle, DustParticleBase, ExplodeParticle, FallingDustParticle, FallingLeavesParticle, FireflyParticle, FireworkParticles.OverlayParticle, FlyStraightTowardsParticle, FlyTowardsPositionParticle, GlowParticle, GustParticle, HeartParticle, HugeExplosionParticle, LavaParticle, NoteParticle, PlayerCloudParticle, PortalParticle, RisingParticle, SculkChargeParticle, SculkChargePopParticle, ShriekParticle, SimpleAnimatedParticle, SnowflakeParticle, SpellParticle, SuspendedParticle, SuspendedTownParticle, TerrainParticle, TrailParticle, TrialSpawnerDetectionParticle, VibrationSignalParticle, WakeParticle, WaterCurrentDownParticle, WaterDropParticle
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic final recordNested classes/interfaces inherited from class Particle
Particle.LifetimeAlpha -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected floatprotected floatprotected floatprotected floatprotected floatprotected floatprotected floatprotected TextureAtlasSprite -
Constructor Summary
ConstructorsConstructorDescriptionSingleQuadParticle(ClientLevel level, double x, double y, double z, double xa, double ya, double za, TextureAtlasSprite sprite) SingleQuadParticle(ClientLevel level, double x, double y, double z, TextureAtlasSprite sprite) -
Method Summary
Modifier and TypeMethodDescriptionvoidextract(QuadParticleRenderState particleTypeRenderState, Camera camera, float partialTickTime) protected voidextractRotatedQuad(QuadParticleRenderState particleTypeRenderState, Camera camera, Quaternionf rotation, float partialTickTime) protected voidextractRotatedQuad(QuadParticleRenderState particleTypeRenderState, Quaternionf rotation, float x, float y, float z, float partialTickTime) getGroup()protected abstract SingleQuadParticle.LayergetLayer()floatgetQuadSize(float a) protected floatgetU0()protected floatgetU1()protected floatgetV0()protected floatgetV1()scale(float scale) protected voidsetAlpha(float alpha) voidsetColor(float r, float g, float b) protected voidsetSprite(TextureAtlasSprite icon) voidsetSpriteFromAge(SpriteSet sprites) toString()Methods inherited from class Particle
getBoundingBox, getLifetime, getLightCoords, getParticleLimit, getPos, isAlive, move, remove, setBoundingBox, setLifetime, setLocationFromBoundingbox, setParticleSpeed, setPos, setPower, setSize, tick
-
Field Details
-
quadSize
protected float quadSize -
rCol
protected float rCol -
gCol
protected float gCol -
bCol
protected float bCol -
alpha
protected float alpha -
roll
protected float roll -
oRoll
protected float oRoll -
sprite
-
-
Constructor Details
-
SingleQuadParticle
public SingleQuadParticle(ClientLevel level, double x, double y, double z, TextureAtlasSprite sprite) -
SingleQuadParticle
public SingleQuadParticle(ClientLevel level, double x, double y, double z, double xa, double ya, double za, TextureAtlasSprite sprite)
-
-
Method Details
-
getFacingCameraMode
-
extract
public void extract(QuadParticleRenderState particleTypeRenderState, Camera camera, float partialTickTime) -
extractRotatedQuad
protected void extractRotatedQuad(QuadParticleRenderState particleTypeRenderState, Camera camera, Quaternionf rotation, float partialTickTime) -
extractRotatedQuad
protected void extractRotatedQuad(QuadParticleRenderState particleTypeRenderState, Quaternionf rotation, float x, float y, float z, float partialTickTime) -
getQuadSize
public float getQuadSize(float a) -
scale
-
getGroup
-
setSpriteFromAge
-
setSprite
-
getU0
protected float getU0() -
getU1
protected float getU1() -
getV0
protected float getV0() -
getV1
protected float getV1() -
getLayer
-
setColor
public void setColor(float r, float g, float b) -
setAlpha
protected void setAlpha(float alpha) -
toString
-