Package net.minecraft.client.particle
Class SpriteBillboardParticle
java.lang.Object
net.minecraft.client.particle.Particle
net.minecraft.client.particle.BillboardParticle
net.minecraft.client.particle.SpriteBillboardParticle
- Direct Known Subclasses:
AbstractDustParticle
,AbstractSlowingParticle
,AnimatedParticle
,AscendingParticle
,BlockDustParticle
,BlockFallingDustParticle
,BlockLeakParticle
,BlockMarkerParticle
,BubbleColumnUpParticle
,BubblePopParticle
,CampfireSmokeParticle
,CherryLeavesParticle
,CloudParticle
,CrackParticle
,CurrentDownParticle
,DamageParticle
,DragonBreathParticle
,EmotionParticle
,EnchantGlyphParticle
,ExplosionLargeParticle
,ExplosionSmokeParticle
,FireworksSparkParticle.Flash
,FishingParticle
,GlowParticle
,GustDustParticle
,GustParticle
,LavaEmberParticle
,NoteParticle
,PortalParticle
,RainSplashParticle
,SculkChargeParticle
,SculkChargePopParticle
,ShriekParticle
,SnowflakeParticle
,SpellParticle
,SuspendParticle
,SweepAttackParticle
,TrialSpawnerDetectionParticle
,VibrationParticle
,WaterBubbleParticle
,WaterSuspendParticle
A
BillboardParticle
implementation class that renders a Sprite
as its camera-facing texture.- Mappings:
Namespace Name official frv
intermediary net/minecraft/class_4003
named net/minecraft/client/particle/SpriteBillboardParticle
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.particle.BillboardParticle
BillboardParticle.Rotator
-
Field Summary
Fields inherited from class net.minecraft.client.particle.BillboardParticle
scale
Fields inherited from class net.minecraft.client.particle.Particle
age, alpha, angle, ascending, blue, collidesWithWorld, dead, gravityStrength, green, maxAge, onGround, prevAngle, prevPosX, prevPosY, prevPosZ, random, red, spacingXZ, spacingY, velocityMultiplier, velocityX, velocityY, velocityZ, world, x, y, z
-
Constructor Summary
ModifierConstructorDescriptionprotected
SpriteBillboardParticle
(ClientWorld world, double x, double y, double z) protected
SpriteBillboardParticle
(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ) -
Method Summary
Modifier and TypeMethodDescriptionprotected float
getMaxU()
Returns the upper U coordinate of the UV coordinates used to draw this particle.protected float
getMaxV()
Returns the upper V coordinate of the UV coordinates used to draw this particle.protected float
getMinU()
Returns the lower U coordinate of the UV coordinates used to draw this particle.protected float
getMinV()
Returns the lower V coordinate of the UV coordinates used to draw this particle.void
setSprite
(SpriteProvider spriteProvider) Sets the currentSprite
of this particle to a random frame in its atlas sheet.protected void
Sets the currentSprite
of this particle.void
setSpriteForAge
(SpriteProvider spriteProvider) Sets the currentSprite
of this particle based on the age of the particle, assuming the particle texture is an atlas with multiple frames.Methods inherited from class net.minecraft.client.particle.BillboardParticle
buildGeometry, getRotator, getSize, scale
Methods inherited from class net.minecraft.client.particle.Particle
getBoundingBox, getBrightness, getGroup, getMaxAge, getType, isAlive, markDead, move, move, repositionFromBoundingBox, setAlpha, setBoundingBox, setBoundingBoxSpacing, setColor, setMaxAge, setPos, setVelocity, tick, toString
-
Field Details
-
sprite
- Mappings:
Namespace Name Mixin selector official E
Lfrv;E:Lgen;
intermediary field_17886
Lnet/minecraft/class_4003;field_17886:Lnet/minecraft/class_1058;
named sprite
Lnet/minecraft/client/particle/SpriteBillboardParticle;sprite:Lnet/minecraft/client/texture/Sprite;
-
-
Constructor Details
-
SpriteBillboardParticle
- Mappings:
Namespace Name Mixin selector official <init>
Lfqv;<init>(Lfns;DDD)V
intermediary <init>
Lnet/minecraft/class_703;<init>(Lnet/minecraft/class_638;DDD)V
named <init>
Lnet/minecraft/client/particle/Particle;<init>(Lnet/minecraft/client/world/ClientWorld;DDD)V
-
SpriteBillboardParticle
protected SpriteBillboardParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ) - Mappings:
Namespace Name Mixin selector official <init>
Lfqv;<init>(Lfns;DDDDDD)V
intermediary <init>
Lnet/minecraft/class_703;<init>(Lnet/minecraft/class_638;DDDDDD)V
named <init>
Lnet/minecraft/client/particle/Particle;<init>(Lnet/minecraft/client/world/ClientWorld;DDDDDD)V
-
-
Method Details
-
setSprite
Sets the currentSprite
of this particle.To assign a
Sprite
based on particle age, seesetSpriteForAge(net.minecraft.client.particle.SpriteProvider)
.- Parameters:
sprite
- the newSprite
to assign to thisParticle
- Mappings:
Namespace Name Mixin selector official a
Lfrv;a(Lgen;)V
intermediary method_18141
Lnet/minecraft/class_4003;method_18141(Lnet/minecraft/class_1058;)V
named setSprite
Lnet/minecraft/client/particle/SpriteBillboardParticle;setSprite(Lnet/minecraft/client/texture/Sprite;)V
-
getMinU
protected float getMinU()Returns the lower U coordinate of the UV coordinates used to draw this particle.- Specified by:
getMinU
in classBillboardParticle
- Returns:
- the lower U coordinate of the UV coordinates used to draw this particle
- Mappings:
Namespace Name Mixin selector official c
Lfri;c()F
intermediary method_18133
Lnet/minecraft/class_3940;method_18133()F
named getMinU
Lnet/minecraft/client/particle/BillboardParticle;getMinU()F
-
getMaxU
protected float getMaxU()Returns the upper U coordinate of the UV coordinates used to draw this particle.- Specified by:
getMaxU
in classBillboardParticle
- Returns:
- the upper U coordinate of the UV coordinates used to draw this particle
- Mappings:
Namespace Name Mixin selector official d
Lfri;d()F
intermediary method_18134
Lnet/minecraft/class_3940;method_18134()F
named getMaxU
Lnet/minecraft/client/particle/BillboardParticle;getMaxU()F
-
getMinV
protected float getMinV()Returns the lower V coordinate of the UV coordinates used to draw this particle.- Specified by:
getMinV
in classBillboardParticle
- Returns:
- the lower V coordinate of the UV coordinates used to draw this particle
- Mappings:
Namespace Name Mixin selector official e
Lfri;e()F
intermediary method_18135
Lnet/minecraft/class_3940;method_18135()F
named getMinV
Lnet/minecraft/client/particle/BillboardParticle;getMinV()F
-
getMaxV
protected float getMaxV()Returns the upper V coordinate of the UV coordinates used to draw this particle.- Specified by:
getMaxV
in classBillboardParticle
- Returns:
- the upper V coordinate of the UV coordinates used to draw this particle
- Mappings:
Namespace Name Mixin selector official f
Lfri;f()F
intermediary method_18136
Lnet/minecraft/class_3940;method_18136()F
named getMaxV
Lnet/minecraft/client/particle/BillboardParticle;getMaxV()F
-
setSprite
Sets the currentSprite
of this particle to a random frame in its atlas sheet.- Parameters:
spriteProvider
- sprite access for retrieving randomSprite
frames- Mappings:
Namespace Name Mixin selector official a
Lfrv;a(Lfrq;)V
intermediary method_18140
Lnet/minecraft/class_4003;method_18140(Lnet/minecraft/class_4002;)V
named setSprite
Lnet/minecraft/client/particle/SpriteBillboardParticle;setSprite(Lnet/minecraft/client/particle/SpriteProvider;)V
-
setSpriteForAge
Sets the currentSprite
of this particle based on the age of the particle, assuming the particle texture is an atlas with multiple frames.- Parameters:
spriteProvider
- sprite access for retrieving the properSprite
based on lifetime progress- Mappings:
Namespace Name Mixin selector official b
Lfrv;b(Lfrq;)V
intermediary method_18142
Lnet/minecraft/class_4003;method_18142(Lnet/minecraft/class_4002;)V
named setSpriteForAge
Lnet/minecraft/client/particle/SpriteBillboardParticle;setSpriteForAge(Lnet/minecraft/client/particle/SpriteProvider;)V
-