public class Particle
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
age |
static Vec3d |
cameraViewDir |
protected boolean |
canCollide |
protected float |
height |
static double |
interpPosX |
static double |
interpPosY |
static double |
interpPosZ |
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 float |
particleScale |
protected TextureAtlasSprite |
particleTexture |
protected int |
particleTextureIndexX |
protected int |
particleTextureIndexY |
protected float |
particleTextureJitterX |
protected float |
particleTextureJitterY |
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 |
---|---|
float |
getBlueColorF() |
AxisAlignedBB |
getBoundingBox() |
int |
getBrightnessForRender(float partialTick) |
int |
getFXLayer() |
float |
getGreenColorF() |
int |
getMaxAge() |
float |
getRedColorF() |
boolean |
isAlive() |
void |
move(double x,
double y,
double z) |
Particle |
multipleParticleScaleBy(float scale) |
Particle |
multiplyVelocity(float multiplier) |
void |
nextTextureIndexX() |
void |
renderParticle(BufferBuilder buffer,
Entity entityIn,
float partialTicks,
float rotationX,
float rotationZ,
float rotationYZ,
float rotationXY,
float rotationXZ) |
protected void |
resetPositionToBB() |
void |
setAlphaF(float alpha) |
void |
setBoundingBox(AxisAlignedBB bb) |
void |
setColor(float particleRedIn,
float particleGreenIn,
float particleBlueIn) |
void |
setExpired() |
void |
setMaxAge(int particleLifeTime) |
void |
setParticleTexture(TextureAtlasSprite texture) |
void |
setParticleTextureIndex(int particleTextureIndex) |
void |
setPosition(double x,
double y,
double z) |
protected void |
setSize(float particleWidth,
float particleHeight) |
boolean |
shouldDisableDepth() |
void |
tick() |
java.lang.String |
toString() |
protected 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
protected boolean onGround
protected boolean canCollide
protected boolean isExpired
protected float width
protected float height
protected java.util.Random rand
protected int particleTextureIndexX
protected int particleTextureIndexY
protected float particleTextureJitterX
protected float particleTextureJitterY
protected int age
protected int maxAge
protected float particleScale
protected float particleGravity
protected float particleRed
protected float particleGreen
protected float particleBlue
protected float particleAlpha
protected TextureAtlasSprite particleTexture
protected float particleAngle
protected float prevParticleAngle
public static double interpPosX
public static double interpPosY
public static double interpPosZ
public static Vec3d cameraViewDir
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)
public void setAlphaF(float alpha)
public boolean shouldDisableDepth()
public float getRedColorF()
public float getGreenColorF()
public float getBlueColorF()
public void setMaxAge(int particleLifeTime)
public int getMaxAge()
public void tick()
public void renderParticle(BufferBuilder buffer, Entity entityIn, float partialTicks, float rotationX, float rotationZ, float rotationYZ, float rotationXY, float rotationXZ)
public int getFXLayer()
public void setParticleTexture(TextureAtlasSprite texture)
public void setParticleTextureIndex(int particleTextureIndex)
public void nextTextureIndexX()
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()
public int getBrightnessForRender(float partialTick)
public boolean isAlive()
public AxisAlignedBB getBoundingBox()
public void setBoundingBox(AxisAlignedBB bb)