Search in sources :

Example 16 with ParticleManager

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));
    }
}
Also used : ParticleManager(net.minecraft.client.particle.ParticleManager) SideOnly(net.minecraftforge.fml.relauncher.SideOnly)

Aggregations

ParticleManager (net.minecraft.client.particle.ParticleManager)16 Particle (net.minecraft.client.particle.Particle)9 SideOnly (net.minecraftforge.fml.relauncher.SideOnly)3 IBlockState (net.minecraft.block.state.IBlockState)2 EnumFacing (net.minecraft.util.EnumFacing)2 BlockPos (net.minecraft.util.math.BlockPos)2 World (net.minecraft.world.World)2 AbstractMachineEntity (crazypants.enderio.base.machine.base.te.AbstractMachineEntity)1 IHiveTile (forestry.api.apiculture.IHiveTile)1 ParticleBeeExplore (forestry.apiculture.entities.ParticleBeeExplore)1 ParticleBeeRoundTrip (forestry.apiculture.entities.ParticleBeeRoundTrip)1 ParticleBeeTargetEntity (forestry.apiculture.entities.ParticleBeeTargetEntity)1 ParticleHoneydust (forestry.core.entities.ParticleHoneydust)1 ParticleIgnition (forestry.core.entities.ParticleIgnition)1 ParticleSmoke (forestry.core.entities.ParticleSmoke)1 ParticleSnow (forestry.core.entities.ParticleSnow)1 Random (java.util.Random)1 IBakedModel (net.minecraft.client.renderer.block.model.IBakedModel)1 TextureAtlasSprite (net.minecraft.client.renderer.texture.TextureAtlasSprite)1 EntityLivingBase (net.minecraft.entity.EntityLivingBase)1