public class ParticleManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected World |
world
Reference to the World object.
|
Constructor and Description |
---|
ParticleManager(World worldIn,
TextureManager rendererIn) |
Modifier and Type | Method and Description |
---|---|
void |
addBlockDestroyEffects(BlockPos pos,
IBlockState state) |
void |
addBlockHitEffects(BlockPos pos,
EnumFacing side)
Adds block hit particles for the specified block
|
void |
addBlockHitEffects(BlockPos pos,
RayTraceResult target) |
void |
addEffect(Particle effect) |
void |
clearEffects(World worldIn) |
void |
emitParticleAtEntity(Entity entityIn,
EnumParticleTypes particleTypes) |
void |
emitParticleAtEntity(Entity p_191271_1_,
EnumParticleTypes p_191271_2_,
int p_191271_3_) |
java.lang.String |
getStatistics() |
void |
registerParticle(int id,
IParticleFactory particleFactory) |
void |
renderLitParticles(Entity entityIn,
float partialTick) |
void |
renderParticles(Entity entityIn,
float partialTicks)
Renders all current particles.
|
Particle |
spawnEffectParticle(int particleId,
double xCoord,
double yCoord,
double zCoord,
double xSpeed,
double ySpeed,
double zSpeed,
int... parameters)
Spawns the relevant particle according to the particle id.
|
void |
updateEffects() |
protected World world
public ParticleManager(World worldIn, TextureManager rendererIn)
public void registerParticle(int id, IParticleFactory particleFactory)
public void emitParticleAtEntity(Entity entityIn, EnumParticleTypes particleTypes)
public void emitParticleAtEntity(Entity p_191271_1_, EnumParticleTypes p_191271_2_, int p_191271_3_)
public Particle spawnEffectParticle(int particleId, double xCoord, double yCoord, double zCoord, double xSpeed, double ySpeed, double zSpeed, int... parameters)
public void addEffect(Particle effect)
public void updateEffects()
public void renderParticles(Entity entityIn, float partialTicks)
public void renderLitParticles(Entity entityIn, float partialTick)
public void clearEffects(World worldIn)
public void addBlockDestroyEffects(BlockPos pos, IBlockState state)
public void addBlockHitEffects(BlockPos pos, EnumFacing side)
public java.lang.String getStatistics()
public void addBlockHitEffects(BlockPos pos, RayTraceResult target)