Package net.minecraft.client.particle
Class Particle
- java.lang.Object
-
- net.minecraft.client.particle.Particle
-
- Direct Known Subclasses:
ItemPickupParticle
,MetaParticle
,MobAppearanceParticle
,TexturedParticle
public abstract class Particle extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected int
age
protected float
alpha
private AxisAlignedBB
bb
protected float
bbHeight
protected float
bbWidth
protected float
bCol
protected float
gCol
protected float
gravity
protected boolean
hasPhysics
private static AxisAlignedBB
INITIAL_AABB
protected ClientWorld
level
protected int
lifetime
protected boolean
onGround
protected float
oRoll
protected java.util.Random
random
protected float
rCol
protected boolean
removed
protected float
roll
private boolean
stoppedByCollision
protected double
x
protected double
xd
protected double
xo
protected double
y
protected double
yd
protected double
yo
protected double
z
protected double
zd
protected double
zo
-
Constructor Summary
Constructors Modifier Constructor Description protected
Particle(ClientWorld p_i232411_1_, double p_i232411_2_, double p_i232411_4_, double p_i232411_6_)
Particle(ClientWorld p_i232412_1_, double p_i232412_2_, double p_i232412_4_, double p_i232412_6_, double p_i232412_8_, double p_i232412_10_, double p_i232412_12_)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description AxisAlignedBB
getBoundingBox()
int
getLifetime()
protected int
getLightColor(float p_189214_1_)
abstract IParticleRenderType
getRenderType()
boolean
isAlive()
void
move(double p_187110_1_, double p_187110_3_, double p_187110_5_)
void
remove()
abstract void
render(IVertexBuilder p_225606_1_, ActiveRenderInfo p_225606_2_, float p_225606_3_)
Particle
scale(float p_70541_1_)
protected void
setAlpha(float p_82338_1_)
void
setBoundingBox(AxisAlignedBB p_187108_1_)
void
setColor(float p_70538_1_, float p_70538_2_, float p_70538_3_)
void
setLifetime(int p_187114_1_)
protected void
setLocationFromBoundingbox()
void
setPos(double p_187109_1_, double p_187109_3_, double p_187109_5_)
Particle
setPower(float p_70543_1_)
protected void
setSize(float p_187115_1_, float p_187115_2_)
boolean
shouldCull()
Forge added method that controls if a particle should be culled to it's bounding box.void
tick()
java.lang.String
toString()
-
-
-
Field Detail
-
INITIAL_AABB
private static final AxisAlignedBB INITIAL_AABB
-
level
protected final ClientWorld 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
private AxisAlignedBB 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
protected final java.util.Random 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
-
-
Constructor Detail
-
Particle
protected Particle(ClientWorld p_i232411_1_, double p_i232411_2_, double p_i232411_4_, double p_i232411_6_)
-
Particle
public Particle(ClientWorld p_i232412_1_, double p_i232412_2_, double p_i232412_4_, double p_i232412_6_, double p_i232412_8_, double p_i232412_10_, double p_i232412_12_)
-
-
Method Detail
-
setPower
public Particle setPower(float p_70543_1_)
-
scale
public Particle scale(float p_70541_1_)
-
setColor
public void setColor(float p_70538_1_, float p_70538_2_, float p_70538_3_)
-
setAlpha
protected void setAlpha(float p_82338_1_)
-
setLifetime
public void setLifetime(int p_187114_1_)
-
getLifetime
public int getLifetime()
-
tick
public void tick()
-
render
public abstract void render(IVertexBuilder p_225606_1_, ActiveRenderInfo p_225606_2_, float p_225606_3_)
-
getRenderType
public abstract IParticleRenderType getRenderType()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
remove
public void remove()
-
setSize
protected void setSize(float p_187115_1_, float p_187115_2_)
-
setPos
public void setPos(double p_187109_1_, double p_187109_3_, double p_187109_5_)
-
move
public void move(double p_187110_1_, double p_187110_3_, double p_187110_5_)
-
setLocationFromBoundingbox
protected void setLocationFromBoundingbox()
-
getLightColor
protected int getLightColor(float p_189214_1_)
-
isAlive
public boolean isAlive()
-
getBoundingBox
public AxisAlignedBB getBoundingBox()
-
setBoundingBox
public void setBoundingBox(AxisAlignedBB p_187108_1_)
-
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
-
-