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) |
Particle |
addParticle(IParticleData particleData,
double x,
double y,
double z,
double xSpeed,
double ySpeed,
double zSpeed) |
void |
addParticleEmitter(Entity entityIn,
IParticleData particleData) |
void |
clearEffects(World worldIn) |
void |
emitParticleAtEntity(Entity entityIn,
IParticleData dataIn,
int lifetimeIn) |
java.lang.String |
getStatistics() |
<T extends IParticleData> |
registerFactory(ParticleType<T> particleTypeIn,
IParticleFactory<T> particleFactoryIn) |
void |
renderLitParticles(Entity entityIn,
float partialTick) |
void |
renderParticles(Entity entityIn,
float partialTicks) |
void |
tick() |
protected World world
public ParticleManager(World worldIn, TextureManager rendererIn)
public <T extends IParticleData> void registerFactory(ParticleType<T> particleTypeIn, IParticleFactory<T> particleFactoryIn)
public void addParticleEmitter(Entity entityIn, IParticleData particleData)
public void emitParticleAtEntity(Entity entityIn, IParticleData dataIn, int lifetimeIn)
@Nullable public Particle addParticle(IParticleData particleData, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed)
public void addEffect(Particle effect)
public void tick()
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)