@Environment(value=CLIENT) public abstract class Particle extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
age |
protected float |
angle |
private Box |
boundingBox |
protected boolean |
collidesWithWorld |
protected float |
colorAlpha |
protected float |
colorBlue |
protected float |
colorGreen |
protected float |
colorRed |
protected boolean |
dead |
private static Box |
EMPTY_BOUNDING_BOX |
private boolean |
field_21507 |
protected float |
gravityStrength |
protected int |
maxAge |
protected boolean |
onGround |
protected float |
prevAngle |
protected double |
prevPosX |
protected double |
prevPosY |
protected double |
prevPosZ |
protected Random |
random |
protected float |
spacingXZ |
protected float |
spacingY |
protected double |
velocityX |
protected double |
velocityY |
protected double |
velocityZ |
protected ClientWorld |
world |
protected double |
x |
protected double |
y |
protected double |
z |
Modifier | Constructor and Description |
---|---|
protected |
Particle(ClientWorld world,
double x,
double y,
double z) |
|
Particle(ClientWorld world,
double x,
double y,
double z,
double velocityX,
double velocityY,
double velocityZ) |
Modifier and Type | Method and Description |
---|---|
abstract void |
buildGeometry(VertexConsumer vertexConsumer,
Camera camera,
float tickDelta) |
Box |
getBoundingBox() |
protected int |
getColorMultiplier(float tint) |
int |
getMaxAge() |
abstract ParticleTextureSheet |
getType() |
boolean |
isAlive() |
void |
markDead() |
void |
move(double dx,
double dy,
double dz) |
Particle |
move(float speed) |
protected void |
repositionFromBoundingBox() |
Particle |
scale(float scale) |
void |
setBoundingBox(Box box) |
protected void |
setBoundingBoxSpacing(float spacingXZ,
float spacingY) |
void |
setColor(float red,
float green,
float blue) |
protected void |
setColorAlpha(float alpha) |
void |
setMaxAge(int maxAge) |
void |
setPos(double x,
double y,
double z) |
void |
tick() |
String |
toString() |
private static final Box EMPTY_BOUNDING_BOX
protected final ClientWorld world
protected double prevPosX
protected double prevPosY
protected double prevPosZ
protected double x
protected double y
protected double z
protected double velocityX
protected double velocityY
protected double velocityZ
private Box boundingBox
protected boolean onGround
protected boolean collidesWithWorld
private boolean field_21507
protected boolean dead
protected float spacingXZ
protected float spacingY
protected final Random random
protected int age
protected int maxAge
protected float gravityStrength
protected float colorRed
protected float colorGreen
protected float colorBlue
protected float colorAlpha
protected float angle
protected float prevAngle
protected Particle(ClientWorld world, double x, double y, double z)
public Particle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ)
public Particle move(float speed)
public Particle scale(float scale)
public void setColor(float red, float green, float blue)
protected void setColorAlpha(float alpha)
public void setMaxAge(int maxAge)
public int getMaxAge()
public void tick()
public abstract void buildGeometry(VertexConsumer vertexConsumer, Camera camera, float tickDelta)
public abstract ParticleTextureSheet getType()
public void markDead()
protected void setBoundingBoxSpacing(float spacingXZ, float spacingY)
public void setPos(double x, double y, double z)
public void move(double dx, double dy, double dz)
protected void repositionFromBoundingBox()
protected int getColorMultiplier(float tint)
public boolean isAlive()
public Box getBoundingBox()
public void setBoundingBox(Box box)