Class Particle
java.lang.Object
net.minecraft.client.particle.Particle
- Direct Known Subclasses:
ElderGuardianParticle, ItemPickupParticle, NoRenderParticle, SingleQuadParticle
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprivate AABBprotected floatprotected floatprotected floatprotected floatprotected booleanprivate static final AABBprotected final ClientLevelprotected intprivate static final doubleprotected booleanprotected final RandomSourceprotected booleanprotected booleanprivate booleanprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected double -
Constructor Summary
ConstructorsConstructorDescriptionParticle(ClientLevel level, double x, double y, double z) Particle(ClientLevel level, double x, double y, double z, double xa, double ya, double za) -
Method Summary
Modifier and TypeMethodDescriptionabstract ParticleRenderTypegetGroup()intprotected intgetLightCoords(float a) getPos()booleanisAlive()voidmove(double xa, double ya, double za) voidremove()scale(float scale) voidsetBoundingBox(AABB bb) voidsetLifetime(int lifetime) protected voidvoidsetParticleSpeed(double xd, double yd, double zd) voidsetPos(double x, double y, double z) setPower(float power) protected voidsetSize(float w, float h) voidtick()toString()
-
Field Details
-
INITIAL_AABB
-
MAXIMUM_COLLISION_VELOCITY_SQUARED
private static final double MAXIMUM_COLLISION_VELOCITY_SQUARED -
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 -
friction
protected float friction -
speedUpWhenYMotionIsBlocked
protected boolean speedUpWhenYMotionIsBlocked
-
-
Constructor Details
-
Particle
-
Particle
-
-
Method Details
-
setPower
-
setParticleSpeed
public void setParticleSpeed(double xd, double yd, double zd) -
scale
-
setLifetime
public void setLifetime(int lifetime) -
getLifetime
public int getLifetime() -
tick
public void tick() -
getGroup
-
toString
-
remove
public void remove() -
setSize
protected void setSize(float w, float h) -
setPos
public void setPos(double x, double y, double z) -
move
public void move(double xa, double ya, double za) -
setLocationFromBoundingbox
protected void setLocationFromBoundingbox() -
getLightCoords
protected int getLightCoords(float a) -
isAlive
public boolean isAlive() -
getBoundingBox
-
setBoundingBox
-
getParticleLimit
-
getPos
-