Package net.minecraft.client.particle
Class Particle
java.lang.Object
net.minecraft.client.particle.Particle
- Direct Known Subclasses:
ItemPickupParticle,MobAppearanceParticle,NoRenderParticle,SingleQuadParticle
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected floatprivate AABBprotected floatprotected floatprotected floatprotected floatprotected floatprotected floatprotected booleanprivate static AABBprotected ClientLevelprotected intprotected booleanprotected floatprotected Randomprotected floatprotected booleanprotected floatprotected booleanprivate booleanprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected double -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedParticle(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 Summary
Modifier and TypeMethodDescriptionintprotected intgetLightColor(float p_107249_)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
-
level
-
xo
protected double xo -
yo
protected double yo -
zo
protected double zo -
x
protected double x -
y
protected double y -
z
protected double z -
xd
protected double xd -
yd
protected double yd -
zd
protected double zd -
bb
-
onGround
protected boolean onGround -
hasPhysics
protected boolean hasPhysics -
stoppedByCollision
private boolean stoppedByCollision -
removed
protected boolean removed -
bbWidth
protected float bbWidth -
bbHeight
protected float bbHeight -
random
-
age
protected int age -
lifetime
protected int lifetime -
gravity
protected float gravity -
rCol
protected float rCol -
gCol
protected float gCol -
bCol
protected float bCol -
alpha
protected float alpha -
roll
protected float roll -
oRoll
protected float oRoll -
friction
protected float friction -
speedUpWhenYMotionIsBlocked
protected boolean speedUpWhenYMotionIsBlocked
-
-
Constructor Details
-
Particle
-
Particle
public 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
-
setParticleSpeed
public void setParticleSpeed(double p_172261_, double p_172262_, double p_172263_) -
scale
-
setColor
public void setColor(float p_107254_, float p_107255_, float p_107256_) -
setAlpha
protected void setAlpha(float p_107272_) -
setLifetime
public void setLifetime(int p_107258_) -
getLifetime
public int getLifetime() -
tick
public void tick() -
render
-
getRenderType
-
toString
-
remove
public void remove() -
setSize
protected void setSize(float p_107251_, float p_107252_) -
setPos
public void setPos(double p_107265_, double p_107266_, double p_107267_) -
move
public void move(double p_107246_, double p_107247_, double p_107248_) -
setLocationFromBoundingbox
protected void setLocationFromBoundingbox() -
getLightColor
protected int getLightColor(float p_107249_) -
isAlive
public boolean isAlive() -
getBoundingBox
-
setBoundingBox
-
getParticleGroup
-
shouldCull
public boolean shouldCull()Forge added method that controls if a particle should be culled to it's bounding box. Default behaviour is culling enabled
-