public abstract class Particle
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
age |
private AxisAlignedBB |
boundingBox |
protected boolean |
canCollide |
private boolean |
collidedY |
private static AxisAlignedBB |
EMPTY_AABB |
protected float |
height |
protected boolean |
isExpired |
protected int |
maxAge |
protected double |
motionX |
protected double |
motionY |
protected double |
motionZ |
protected boolean |
onGround |
protected float |
particleAlpha |
protected float |
particleAngle |
protected float |
particleBlue |
protected float |
particleGravity |
protected float |
particleGreen |
protected float |
particleRed |
protected double |
posX |
protected double |
posY |
protected double |
posZ |
protected float |
prevParticleAngle |
protected double |
prevPosX |
protected double |
prevPosY |
protected double |
prevPosZ |
protected java.util.Random |
rand |
protected float |
width |
protected World |
world |
Modifier | Constructor and Description |
---|---|
protected |
Particle(World worldIn,
double posXIn,
double posYIn,
double posZIn) |
|
Particle(World worldIn,
double xCoordIn,
double yCoordIn,
double zCoordIn,
double xSpeedIn,
double ySpeedIn,
double zSpeedIn) |
Modifier and Type | Method and Description |
---|---|
AxisAlignedBB |
getBoundingBox() |
protected int |
getBrightnessForRender(float partialTick) |
int |
getMaxAge() |
abstract IParticleRenderType |
getRenderType() |
boolean |
isAlive() |
void |
move(double x,
double y,
double z) |
Particle |
multipleParticleScaleBy(float scale) |
Particle |
multiplyVelocity(float multiplier) |
abstract void |
renderParticle(IVertexBuilder buffer,
ActiveRenderInfo renderInfo,
float partialTicks) |
protected void |
resetPositionToBB() |
protected void |
setAlphaF(float alpha) |
void |
setBoundingBox(AxisAlignedBB bb) |
void |
setColor(float particleRedIn,
float particleGreenIn,
float particleBlueIn) |
void |
setExpired() |
void |
setMaxAge(int particleLifeTime) |
void |
setPosition(double x,
double y,
double z) |
protected void |
setSize(float particleWidth,
float particleHeight) |
void |
tick() |
java.lang.String |
toString() |
private static final AxisAlignedBB EMPTY_AABB
protected final World world
protected double prevPosX
protected double prevPosY
protected double prevPosZ
protected double posX
protected double posY
protected double posZ
protected double motionX
protected double motionY
protected double motionZ
private AxisAlignedBB boundingBox
protected boolean onGround
protected boolean canCollide
private boolean collidedY
protected boolean isExpired
protected float width
protected float height
protected final java.util.Random rand
protected int age
protected int maxAge
protected float particleGravity
protected float particleRed
protected float particleGreen
protected float particleBlue
protected float particleAlpha
protected float particleAngle
protected float prevParticleAngle
protected Particle(World worldIn, double posXIn, double posYIn, double posZIn)
public Particle(World worldIn, double xCoordIn, double yCoordIn, double zCoordIn, double xSpeedIn, double ySpeedIn, double zSpeedIn)
public Particle multiplyVelocity(float multiplier)
public Particle multipleParticleScaleBy(float scale)
public void setColor(float particleRedIn, float particleGreenIn, float particleBlueIn)
protected void setAlphaF(float alpha)
public void setMaxAge(int particleLifeTime)
public int getMaxAge()
public void tick()
public abstract void renderParticle(IVertexBuilder buffer, ActiveRenderInfo renderInfo, float partialTicks)
public abstract IParticleRenderType getRenderType()
public java.lang.String toString()
toString
in class java.lang.Object
public void setExpired()
protected void setSize(float particleWidth, float particleHeight)
public void setPosition(double x, double y, double z)
public void move(double x, double y, double z)
protected void resetPositionToBB()
protected int getBrightnessForRender(float partialTick)
public boolean isAlive()
public AxisAlignedBB getBoundingBox()
public void setBoundingBox(AxisAlignedBB bb)