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,ConnectionParticle,CrackParticle,CurrentDownParticle,DamageParticle,DragonBreathParticle,EmotionParticle,ExplosionLargeParticle,ExplosionSmokeParticle,FireworksSparkParticle.Flash,FishingParticle,GlowParticle,GustParticle,LavaEmberParticle,NoteParticle,OminousSpawningParticle,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 named net/minecraft/client/particle/SpriteBillboardParticleintermediary net/minecraft/class_4003official gdn
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.particle.BillboardParticle
BillboardParticle.RotatorNested classes/interfaces inherited from class net.minecraft.client.particle.Particle
Particle.DynamicAlpha -
Field Summary
FieldsFields inherited from class net.minecraft.client.particle.BillboardParticle
scaleFields 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
ConstructorsModifierConstructorDescriptionprotectedSpriteBillboardParticle(ClientWorld world, double x, double y, double z) protectedSpriteBillboardParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ) -
Method Summary
Modifier and TypeMethodDescriptionprotected floatgetMaxU()Returns the upper U coordinate of the UV coordinates used to draw this particle.protected floatgetMaxV()Returns the upper V coordinate of the UV coordinates used to draw this particle.protected floatgetMinU()Returns the lower U coordinate of the UV coordinates used to draw this particle.protected floatgetMinV()Returns the lower V coordinate of the UV coordinates used to draw this particle.voidsetSprite(SpriteProvider spriteProvider) Sets the currentSpriteof this particle to a random frame in its atlas sheet.protected voidSets the currentSpriteof this particle.voidsetSpriteForAge(SpriteProvider spriteProvider) Sets the currentSpriteof 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, method_60373, method_60374, scaleMethods 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 named spriteLnet/minecraft/client/particle/SpriteBillboardParticle;sprite:Lnet/minecraft/client/texture/Sprite;intermediary field_17886Lnet/minecraft/class_4003;field_17886:Lnet/minecraft/class_1058;official ELgdn;E:Lgql;
-
-
Constructor Details
-
SpriteBillboardParticle
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/particle/Particle;<init>(Lnet/minecraft/client/world/ClientWorld;DDD)Vintermediary <init>Lnet/minecraft/class_703;<init>(Lnet/minecraft/class_638;DDD)Vofficial <init>Lgcn;<init>(Lfzf;DDD)V
-
SpriteBillboardParticle
protected SpriteBillboardParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/particle/Particle;<init>(Lnet/minecraft/client/world/ClientWorld;DDDDDD)Vintermediary <init>Lnet/minecraft/class_703;<init>(Lnet/minecraft/class_638;DDDDDD)Vofficial <init>Lgcn;<init>(Lfzf;DDDDDD)V
-
-
Method Details
-
setSprite
Sets the currentSpriteof this particle.To assign a
Spritebased on particle age, seesetSpriteForAge(net.minecraft.client.particle.SpriteProvider).- Parameters:
sprite- the newSpriteto assign to thisParticle- Mappings:
Namespace Name Mixin selector named setSpriteLnet/minecraft/client/particle/SpriteBillboardParticle;setSprite(Lnet/minecraft/client/texture/Sprite;)Vintermediary method_18141Lnet/minecraft/class_4003;method_18141(Lnet/minecraft/class_1058;)Vofficial aLgdn;a(Lgql;)V
-
getMinU
protected float getMinU()Returns the lower U coordinate of the UV coordinates used to draw this particle.- Specified by:
getMinUin classBillboardParticle- Returns:
- the lower U coordinate of the UV coordinates used to draw this particle
- Mappings:
Namespace Name Mixin selector named getMinULnet/minecraft/client/particle/BillboardParticle;getMinU()Fintermediary method_18133Lnet/minecraft/class_3940;method_18133()Fofficial cLgda;c()F
-
getMaxU
protected float getMaxU()Returns the upper U coordinate of the UV coordinates used to draw this particle.- Specified by:
getMaxUin classBillboardParticle- Returns:
- the upper U coordinate of the UV coordinates used to draw this particle
- Mappings:
Namespace Name Mixin selector named getMaxULnet/minecraft/client/particle/BillboardParticle;getMaxU()Fintermediary method_18134Lnet/minecraft/class_3940;method_18134()Fofficial dLgda;d()F
-
getMinV
protected float getMinV()Returns the lower V coordinate of the UV coordinates used to draw this particle.- Specified by:
getMinVin classBillboardParticle- Returns:
- the lower V coordinate of the UV coordinates used to draw this particle
- Mappings:
Namespace Name Mixin selector named getMinVLnet/minecraft/client/particle/BillboardParticle;getMinV()Fintermediary method_18135Lnet/minecraft/class_3940;method_18135()Fofficial eLgda;e()F
-
getMaxV
protected float getMaxV()Returns the upper V coordinate of the UV coordinates used to draw this particle.- Specified by:
getMaxVin classBillboardParticle- Returns:
- the upper V coordinate of the UV coordinates used to draw this particle
- Mappings:
Namespace Name Mixin selector named getMaxVLnet/minecraft/client/particle/BillboardParticle;getMaxV()Fintermediary method_18136Lnet/minecraft/class_3940;method_18136()Fofficial fLgda;f()F
-
setSprite
Sets the currentSpriteof this particle to a random frame in its atlas sheet.- Parameters:
spriteProvider- sprite access for retrieving randomSpriteframes- Mappings:
Namespace Name Mixin selector named setSpriteLnet/minecraft/client/particle/SpriteBillboardParticle;setSprite(Lnet/minecraft/client/particle/SpriteProvider;)Vintermediary method_18140Lnet/minecraft/class_4003;method_18140(Lnet/minecraft/class_4002;)Vofficial aLgdn;a(Lgdi;)V
-
setSpriteForAge
Sets the currentSpriteof 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 properSpritebased on lifetime progress- Mappings:
Namespace Name Mixin selector named setSpriteForAgeLnet/minecraft/client/particle/SpriteBillboardParticle;setSpriteForAge(Lnet/minecraft/client/particle/SpriteProvider;)Vintermediary method_18142Lnet/minecraft/class_4003;method_18142(Lnet/minecraft/class_4002;)Vofficial bLgdn;b(Lgdi;)V
-