public class ParticleManager
extends java.lang.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) |
void |
addBlockHitEffects(BlockPos pos,
RayTraceResult target) |
void |
addEffect(Particle effect) |
void |
clearEffects(World worldIn) |
void |
emitParticleAtEntity(Entity entityIn,
EnumParticleTypes particleTypes) |
java.lang.String |
getStatistics() |
void |
registerParticle(int id,
IParticleFactory particleFactory) |
void |
renderLitParticles(Entity entityIn,
float partialTick) |
void |
renderParticles(Entity entityIn,
float partialTicks) |
Particle |
spawnEffectParticle(int particleId,
double xCoord,
double yCoord,
double zCoord,
double xSpeed,
double ySpeed,
double zSpeed,
int... parameters) |
void |
updateEffects() |
protected World worldObj
public ParticleManager(World worldIn, TextureManager rendererIn)
public void registerParticle(int id, IParticleFactory particleFactory)
public void emitParticleAtEntity(Entity entityIn, EnumParticleTypes particleTypes)
@Nullable 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(@Nullable 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)