public class EffectRenderer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected World |
worldObj
Reference to the World object.
|
Constructor and Description |
---|
EffectRenderer(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,
MovingObjectPosition target) |
void |
addEffect(EntityFX effect) |
void |
clearEffects(World worldIn) |
void |
emitParticleAtEntity(Entity entityIn,
EnumParticleTypes particleTypes) |
java.lang.String |
getStatistics() |
void |
moveToAlphaLayer(EntityFX effect) |
void |
moveToNoAlphaLayer(EntityFX effect) |
void |
registerParticle(int id,
IParticleFactory particleFactory) |
void |
renderLitParticles(Entity entityIn,
float p_78872_2_) |
void |
renderParticles(Entity entityIn,
float partialTicks)
Renders all current particles.
|
EntityFX |
spawnEffectParticle(int particleId,
double p_178927_2_,
double p_178927_4_,
double p_178927_6_,
double p_178927_8_,
double p_178927_10_,
double p_178927_12_,
int... p_178927_14_)
Spawns the relevant particle according to the particle id.
|
void |
updateEffects() |
protected World worldObj
public EffectRenderer(World worldIn, TextureManager rendererIn)
public void registerParticle(int id, IParticleFactory particleFactory)
public void emitParticleAtEntity(Entity entityIn, EnumParticleTypes particleTypes)
public EntityFX spawnEffectParticle(int particleId, double p_178927_2_, double p_178927_4_, double p_178927_6_, double p_178927_8_, double p_178927_10_, double p_178927_12_, int... p_178927_14_)
public void addEffect(EntityFX effect)
public void updateEffects()
public void renderParticles(Entity entityIn, float partialTicks)
public void renderLitParticles(Entity entityIn, float p_78872_2_)
public void clearEffects(World worldIn)
public void addBlockDestroyEffects(BlockPos pos, IBlockState state)
public void addBlockHitEffects(BlockPos pos, EnumFacing side)
public void moveToAlphaLayer(EntityFX effect)
public void moveToNoAlphaLayer(EntityFX effect)
public java.lang.String getStatistics()
public void addBlockHitEffects(BlockPos pos, MovingObjectPosition target)