use of net.minecraft.client.particle.ParticleManager in project NetherEx by LogicTechCorp.
the class ClientProxy method onRegisterParticleFactory.
private void onRegisterParticleFactory(ParticleFactoryRegisterEvent event) {
ParticleManager particleManager = Minecraft.getInstance().particles;
particleManager.registerFactory(NetherExParticles.SPORE_CREEPER_EXPLOSION.get(), SporeCreeperExplosionParticle.Factory::new);
particleManager.registerFactory(NetherExParticles.SPORE_CREEPER_EXPLOSION_EMITTER.get(), new SporeCreeperExplosionEmitterParticle.Factory());
}
use of net.minecraft.client.particle.ParticleManager in project Binnie by ForestryMC.
the class SplicerFX method onDisplayTick.
@SideOnly(Side.CLIENT)
@Override
public void onDisplayTick(World world, BlockPos pos, Random rand) {
if (!this.getUtil().getProcess().isInProgress())
return;
final int tick = (int) (world.getTotalWorldTime() % 3L);
if (tick == 0) {
final ParticleManager effectRenderer = BinnieCore.getBinnieProxy().getMinecraftInstance().effectRenderer;
effectRenderer.addEffect(new SplicerParticle(world, pos));
}
}
Aggregations