Package net.minecraft.client.particle
Class Particle
java.lang.Object
net.minecraft.client.particle.Particle
- Direct Known Subclasses:
ItemPickupParticle
,MobAppearanceParticle
,NoRenderParticle
,SingleQuadParticle
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected float
private AABB
protected float
protected float
protected float
protected float
protected float
protected float
protected boolean
private static AABB
protected ClientLevel
protected int
protected boolean
protected float
protected Random
protected float
protected boolean
protected float
protected boolean
private boolean
protected double
protected double
protected double
protected double
protected double
protected double
protected double
protected double
protected double
-
Constructor Summary
ModifierConstructorDescriptionprotected
Particle(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 TypeMethodDescriptionint
protected int
getLightColor(float p_107249_)
abstract ParticleRenderType
boolean
isAlive()
void
move(double p_107246_, double p_107247_, double p_107248_)
void
remove()
abstract void
render(VertexConsumer p_107261_, Camera p_107262_, float p_107263_)
scale(float p_107270_)
protected void
setAlpha(float p_107272_)
void
setBoundingBox(AABB p_107260_)
void
setColor(float p_107254_, float p_107255_, float p_107256_)
void
setLifetime(int p_107258_)
protected void
void
setParticleSpeed(double p_172261_, double p_172262_, double p_172263_)
void
setPos(double p_107265_, double p_107266_, double p_107267_)
setPower(float p_107269_)
protected void
setSize(float p_107251_, float p_107252_)
boolean
Forge added method that controls if a particle should be culled to it's bounding box.void
tick()
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
-