public class Particle
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private AxisAlignedBB |
boundingBox |
static Vec3d |
cameraViewDir |
protected boolean |
canCollide |
private static AxisAlignedBB |
EMPTY_AABB |
protected float |
height |
static double |
interpPosX |
static double |
interpPosY |
static double |
interpPosZ |
protected boolean |
isExpired |
protected double |
motionX |
protected double |
motionY |
protected double |
motionZ |
protected boolean |
onGround |
protected int |
particleAge |
protected float |
particleAlpha |
protected float |
particleAngle |
protected float |
particleBlue |
protected float |
particleGravity |
protected float |
particleGreen |
protected int |
particleMaxAge |
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 p_189214_1_) |
int |
getFXLayer() |
float |
getGreenColorF() |
float |
getRedColorF() |
boolean |
isAlive() |
void |
move(double x,
double y,
double z) |
Particle |
multipleParticleScaleBy(float scale) |
Particle |
multiplyVelocity(float multiplier) |
void |
nextTextureIndexX() |
void |
onUpdate() |
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 |
setExpired() |
void |
setMaxAge(int p_187114_1_) |
void |
setParticleTexture(TextureAtlasSprite texture) |
void |
setParticleTextureIndex(int particleTextureIndex) |
void |
setPosition(double p_187109_1_,
double p_187109_3_,
double p_187109_5_) |
void |
setRBGColorF(float particleRedIn,
float particleGreenIn,
float particleBlueIn) |
protected void |
setSize(float p_187115_1_,
float p_187115_2_) |
boolean |
shouldDisableDepth() |
java.lang.String |
toString() |
private static final AxisAlignedBB EMPTY_AABB
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
private AxisAlignedBB boundingBox
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 particleAge
protected int particleMaxAge
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 setRBGColorF(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 p_187114_1_)
public void onUpdate()
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 p_187115_1_, float p_187115_2_)
public void setPosition(double p_187109_1_, double p_187109_3_, double p_187109_5_)
public void move(double x, double y, double z)
protected void resetPositionToBB()
public int getBrightnessForRender(float p_189214_1_)
public boolean isAlive()
public AxisAlignedBB getBoundingBox()
public void setBoundingBox(AxisAlignedBB bb)