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;
}
Aggregations