Search in sources :

Example 6 with EntityDiggingFX

use of net.minecraft.client.particle.EntityDiggingFX in project ArsMagica2 by Mithion.

the class BlockEverstone method addDestroyEffects.

@Override
@SideOnly(Side.CLIENT)
public boolean addDestroyEffects(World world, int x, int y, int z, int meta, EffectRenderer effectRenderer) {
    TileEntityEverstone everstone = getTE(world, x, y, z);
    for (int i = 0; i < 5 * AMCore.config.getGFXLevel(); ++i) {
        Block block = Blocks.air;
        int blockMeta = 0;
        if (everstone == null || everstone.getFacade() == null) {
            block = this;
        } else {
            block = everstone.getFacade();
            if (block == null)
                block = this;
            blockMeta = everstone.getFacadeMeta();
        }
        effectRenderer.addEffect(new EntityDiggingFX(world, x + world.rand.nextDouble(), y + world.rand.nextDouble(), z + world.rand.nextDouble(), 0, 0, 0, block, blockMeta, 0));
    }
    return true;
}
Also used : EntityDiggingFX(net.minecraft.client.particle.EntityDiggingFX) Block(net.minecraft.block.Block) ItemBlock(net.minecraft.item.ItemBlock) TileEntityEverstone(am2.blocks.tileentities.TileEntityEverstone) SideOnly(cpw.mods.fml.relauncher.SideOnly)

Aggregations

EntityDiggingFX (net.minecraft.client.particle.EntityDiggingFX)6 SideOnly (cpw.mods.fml.relauncher.SideOnly)4 Block (net.minecraft.block.Block)4 IIcon (net.minecraft.util.IIcon)3 TileEntityEverstone (am2.blocks.tileentities.TileEntityEverstone)2 ItemBlock (net.minecraft.item.ItemBlock)2 DoubleCoordinates (network.rs485.logisticspipes.world.DoubleCoordinates)2 AMParticle (am2.particles.AMParticle)1 Pos (com.builtbroken.mc.imp.transform.vector.Pos)1 FXEnderPortalPartical (com.builtbroken.mc.lib.render.fx.FXEnderPortalPartical)1 FXSmoke (com.builtbroken.mc.lib.render.fx.FXSmoke)1 FXAntimatterPartical (icbm.classic.client.fx.FXAntimatterPartical)1 PlayerConfig (logisticspipes.config.PlayerConfig)1 EntityFX (net.minecraft.client.particle.EntityFX)1 TileEntity (net.minecraft.tileentity.TileEntity)1 DoubleCoordinatesType (network.rs485.logisticspipes.world.DoubleCoordinatesType)1