Package net.minecraft.client.particle
Class Particle
java.lang.Object
net.minecraft.client.particle.Particle
- Direct Known Subclasses:
- ItemPickupParticle,- MobAppearanceParticle,- NoRenderParticle,- SingleQuadParticle
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected intprotected floatprivate AABBprotected floatprotected floatprotected floatprotected floatprotected floatprotected floatprotected booleanprivate static final AABBprotected final ClientLevelprotected intprivate static final doubleprotected booleanprotected floatprotected final RandomSourceprotected floatprotected booleanprotected floatprotected booleanprivate booleanprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected double
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedParticle(ClientLevel p_107234_, double p_107235_, double p_107236_, double p_107237_) Particle(ClientLevel p_107239_, double p_107240_, double p_107241_, double p_107242_, double p_107243_, double p_107244_, double p_107245_) 
- 
Method SummaryModifier and TypeMethodDescriptionintprotected intgetLightColor(float p_107249_) getPos()abstract ParticleRenderTypebooleanisAlive()voidmove(double p_107246_, double p_107247_, double p_107248_) voidremove()abstract voidrender(VertexConsumer p_107261_, Camera p_107262_, float p_107263_) scale(float p_107270_) protected voidsetAlpha(float p_107272_) voidsetBoundingBox(AABB p_107260_) voidsetColor(float p_107254_, float p_107255_, float p_107256_) voidsetLifetime(int p_107258_) protected voidvoidsetParticleSpeed(double p_172261_, double p_172262_, double p_172263_) voidsetPos(double p_107265_, double p_107266_, double p_107267_) setPower(float p_107269_) protected voidsetSize(float p_107251_, float p_107252_) booleanForge added method that controls if a particle should be culled to it's bounding box.voidtick()toString()
- 
Field Details- 
INITIAL_AABB
- 
MAXIMUM_COLLISION_VELOCITY_SQUAREDprivate static final double MAXIMUM_COLLISION_VELOCITY_SQUARED
- 
level
- 
xoprotected double xo
- 
yoprotected double yo
- 
zoprotected double zo
- 
xprotected double x
- 
yprotected double y
- 
zprotected double z
- 
xdprotected double xd
- 
ydprotected double yd
- 
zdprotected double zd
- 
bb
- 
onGroundprotected boolean onGround
- 
hasPhysicsprotected boolean hasPhysics
- 
stoppedByCollisionprivate boolean stoppedByCollision
- 
removedprotected boolean removed
- 
bbWidthprotected float bbWidth
- 
bbHeightprotected float bbHeight
- 
random
- 
ageprotected int age
- 
lifetimeprotected int lifetime
- 
gravityprotected float gravity
- 
rColprotected float rCol
- 
gColprotected float gCol
- 
bColprotected float bCol
- 
alphaprotected float alpha
- 
rollprotected float roll
- 
oRollprotected float oRoll
- 
frictionprotected float friction
- 
speedUpWhenYMotionIsBlockedprotected boolean speedUpWhenYMotionIsBlocked
 
- 
- 
Constructor Details- 
Particle
- 
Particlepublic Particle(ClientLevel p_107239_, double p_107240_, double p_107241_, double p_107242_, double p_107243_, double p_107244_, double p_107245_) 
 
- 
- 
Method Details- 
setPower
- 
setParticleSpeedpublic void setParticleSpeed(double p_172261_, double p_172262_, double p_172263_) 
- 
scale
- 
setColorpublic void setColor(float p_107254_, float p_107255_, float p_107256_) 
- 
setAlphaprotected void setAlpha(float p_107272_) 
- 
setLifetimepublic void setLifetime(int p_107258_) 
- 
getLifetimepublic int getLifetime()
- 
tickpublic void tick()
- 
render
- 
getRenderType
- 
toString
- 
removepublic void remove()
- 
setSizeprotected void setSize(float p_107251_, float p_107252_) 
- 
setPospublic void setPos(double p_107265_, double p_107266_, double p_107267_) 
- 
movepublic void move(double p_107246_, double p_107247_, double p_107248_) 
- 
setLocationFromBoundingboxprotected void setLocationFromBoundingbox()
- 
getLightColorprotected int getLightColor(float p_107249_) 
- 
isAlivepublic boolean isAlive()
- 
getBoundingBox
- 
setBoundingBox
- 
getParticleGroup
- 
shouldCullpublic boolean shouldCull()Forge added method that controls if a particle should be culled to it's bounding box. Default behaviour is culling enabled
- 
getPos
 
-