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,LavaEmberParticle,NoteParticle,PortalParticle,RainSplashParticle,SculkChargeParticle,SculkChargePopParticle,ShriekParticle,SnowflakeParticle,SpellParticle,SuspendParticle,SweepAttackParticle,VibrationParticle,WaterBubbleParticle,WaterSuspendParticle
A
BillboardParticle implementation class that renders a Sprite as its camera-facing texture.- Mappings:
Namespace Name official fibintermediary net/minecraft/class_4003named net/minecraft/client/particle/SpriteBillboardParticle
-
Field Summary
FieldsFields inherited from class net.minecraft.client.particle.BillboardParticle
scaleFields inherited from class net.minecraft.client.particle.Particle
age, alpha, angle, blue, collidesWithWorld, dead, field_28787, 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, getSize, 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 official ELfib;E:Lfuk;intermediary field_17886Lnet/minecraft/class_4003;field_17886:Lnet/minecraft/class_1058;named spriteLnet/minecraft/client/particle/SpriteBillboardParticle;sprite:Lnet/minecraft/client/texture/Sprite;
-
-
Constructor Details
-
SpriteBillboardParticle
- Mappings:
Namespace Name Mixin selector official <init>Lfhb;<init>(Lfel;DDD)Vintermediary <init>Lnet/minecraft/class_703;<init>(Lnet/minecraft/class_638;DDD)Vnamed <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>Lfhb;<init>(Lfel;DDDDDD)Vintermediary <init>Lnet/minecraft/class_703;<init>(Lnet/minecraft/class_638;DDDDDD)Vnamed <init>Lnet/minecraft/client/particle/Particle;<init>(Lnet/minecraft/client/world/ClientWorld;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 official aLfib;a(Lfuk;)Vintermediary method_18141Lnet/minecraft/class_4003;method_18141(Lnet/minecraft/class_1058;)Vnamed setSpriteLnet/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:
getMinUin classBillboardParticle- Returns:
- the lower U coordinate of the UV coordinates used to draw this particle
- Mappings:
Namespace Name Mixin selector official cLfho;c()Fintermediary method_18133Lnet/minecraft/class_3940;method_18133()Fnamed getMinULnet/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:
getMaxUin classBillboardParticle- Returns:
- the upper U coordinate of the UV coordinates used to draw this particle
- Mappings:
Namespace Name Mixin selector official dLfho;d()Fintermediary method_18134Lnet/minecraft/class_3940;method_18134()Fnamed getMaxULnet/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:
getMinVin classBillboardParticle- Returns:
- the lower V coordinate of the UV coordinates used to draw this particle
- Mappings:
Namespace Name Mixin selector official eLfho;e()Fintermediary method_18135Lnet/minecraft/class_3940;method_18135()Fnamed getMinVLnet/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:
getMaxVin classBillboardParticle- Returns:
- the upper V coordinate of the UV coordinates used to draw this particle
- Mappings:
Namespace Name Mixin selector official fLfho;f()Fintermediary method_18136Lnet/minecraft/class_3940;method_18136()Fnamed getMaxVLnet/minecraft/client/particle/BillboardParticle;getMaxV()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 official aLfib;a(Lfhw;)Vintermediary method_18140Lnet/minecraft/class_4003;method_18140(Lnet/minecraft/class_4002;)Vnamed setSpriteLnet/minecraft/client/particle/SpriteBillboardParticle;setSprite(Lnet/minecraft/client/particle/SpriteProvider;)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 official bLfib;b(Lfhw;)Vintermediary method_18142Lnet/minecraft/class_4003;method_18142(Lnet/minecraft/class_4002;)Vnamed setSpriteForAgeLnet/minecraft/client/particle/SpriteBillboardParticle;setSpriteForAge(Lnet/minecraft/client/particle/SpriteProvider;)V
-