Package net.minecraft.client.particle
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 net.minecraft.client.particle.Particle
Particle.LifetimeAlpha -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected floatprotected floatprotected floatprotected floatprotected floatprotected floatprotected floatprotected TextureAtlasSprite -
Constructor Summary
ConstructorsConstructorDescriptionSingleQuadParticle(ClientLevel pLevel, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed, TextureAtlasSprite pSprite) SingleQuadParticle(ClientLevel pLevel, double pX, double pY, double pZ, TextureAtlasSprite pSprite) -
Method Summary
Modifier and TypeMethodDescriptionvoidextract(QuadParticleRenderState pReusedState, Camera pCamera, float pPartialTick) protected voidextractRotatedQuad(QuadParticleRenderState pReusedState, Camera pCamera, Quaternionf pOrientation, float pPartialTick) protected voidextractRotatedQuad(QuadParticleRenderState pReusedState, Quaternionf pOrientation, float pX, float pY, float pZ, float pPartialTick) getGroup()protected abstract SingleQuadParticle.LayergetLayer()floatgetQuadSize(float pScaleFactor) protected floatgetU0()protected floatgetU1()protected floatgetV0()protected floatgetV1()scale(float pScale) protected voidsetAlpha(float pAlpha) voidsetColor(float pR, float pG, float pB) protected voidsetSprite(TextureAtlasSprite pSprite) voidsetSpriteFromAge(SpriteSet pSprites) toString()Methods inherited from class net.minecraft.client.particle.Particle
getBoundingBox, getLifetime, getLightColor, 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 pLevel, double pX, double pY, double pZ, TextureAtlasSprite pSprite) -
SingleQuadParticle
public SingleQuadParticle(ClientLevel pLevel, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed, TextureAtlasSprite pSprite)
-
-
Method Details
-
getFacingCameraMode
-
extract
-
extractRotatedQuad
protected void extractRotatedQuad(QuadParticleRenderState pReusedState, Camera pCamera, Quaternionf pOrientation, float pPartialTick) -
extractRotatedQuad
protected void extractRotatedQuad(QuadParticleRenderState pReusedState, Quaternionf pOrientation, float pX, float pY, float pZ, float pPartialTick) -
getQuadSize
public float getQuadSize(float pScaleFactor) -
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 pR, float pG, float pB) -
setAlpha
protected void setAlpha(float pAlpha) -
toString
-