public class ParticleManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.ArrayDeque<Particle>[][] |
fxLayers |
private static ResourceLocation |
PARTICLE_TEXTURES |
private java.util.Queue<ParticleEmitter> |
particleEmitters |
private java.util.Map<java.lang.Integer,IParticleFactory> |
particleTypes |
private java.util.Queue<Particle> |
queue |
private java.util.Random |
rand |
private TextureManager |
renderer |
protected World |
world |
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) |
void |
emitParticleAtEntity(Entity p_191271_1_,
EnumParticleTypes p_191271_2_,
int p_191271_3_) |
java.lang.String |
getStatistics() |
void |
registerParticle(int id,
IParticleFactory particleFactory) |
private void |
registerVanillaParticles() |
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) |
private void |
tickParticle(Particle particle) |
private void |
tickParticleList(java.util.Queue<Particle> p_187240_1_) |
private void |
updateEffectLayer(int layer) |
void |
updateEffects() |
private static final ResourceLocation PARTICLE_TEXTURES
protected World world
private final java.util.ArrayDeque<Particle>[][] fxLayers
private final java.util.Queue<ParticleEmitter> particleEmitters
private final TextureManager renderer
private final java.util.Random rand
private final java.util.Map<java.lang.Integer,IParticleFactory> particleTypes
private final java.util.Queue<Particle> queue
public ParticleManager(World worldIn, TextureManager rendererIn)
private void registerVanillaParticles()
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_)
@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()
private void updateEffectLayer(int layer)
private void tickParticleList(java.util.Queue<Particle> p_187240_1_)
private void tickParticle(Particle particle)
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)