Package net.minecraft.client.particle

Examples of net.minecraft.client.particle.EntityDiggingFX


                for (int k = 0; k < its; ++k) {
                    double px = x + (i + 0.5D) / (double) its;
                    double py = y + (j + 0.5D) / (double) its;
                    double pz = z + (k + 0.5D) / (double) its;
                    int random = rand.nextInt(6);
                    EntityDiggingFX fx = new EntityDiggingFX(world, px, py, pz, px - x - 0.5D, py - y - 0.5D, pz - z - 0.5D, block, random, meta);
                    fx.setParticleIcon(block.getIcon(world, x, y, z, 0));
                    if (callback != null)
                        callback.addDestroyEffects(fx, world, x, y, z, meta);
                    effectRenderer.addEffect(fx.applyColourMultiplier(x, y, z));
                }
            }
        }
        return true;
    }
View Full Code Here


              double d2 = target.blockZ + (k1 + 0.5D) / b0;

              double dd0 = target.hitVec.xCoord;
              double dd1 = target.hitVec.yCoord;
              double dd2 = target.hitVec.zCoord;
              EntityDiggingFX fx = (new EntityDiggingFX( world, dd0, dd1, dd2, d0 - target.blockX - 0.5D, d1 - target.blockY
                  - 0.5D, d2 - target.blockZ - 0.5D, this, 0 )).applyColourMultiplier( target.blockX, target.blockY, target.blockZ );

              fx.setParticleIcon( ico );

              effectRenderer.addEffect( fx );
            }
          }
        }
View Full Code Here

            for (int k1 = 0; k1 < b0; ++k1)
            {
              double d0 = x + (i1 + 0.5D) / b0;
              double d1 = y + (j1 + 0.5D) / b0;
              double d2 = z + (k1 + 0.5D) / b0;
              EntityDiggingFX fx = (new EntityDiggingFX( world, d0, d1, d2, d0 - x - 0.5D, d1 - y - 0.5D, d2 - z
                  - 0.5D, this, meta )).applyColourMultiplier( x, y, z );

              fx.setParticleIcon( ico );

              effectRenderer.addEffect( fx );
            }
          }
        }
View Full Code Here

    if (sideHit == 5) {
      px = x + block.getBlockBoundsMaxX() + b;
    }

    EntityDiggingFX fx = new EntityDiggingFX(worldObj, px, py, pz, 0.0D, 0.0D, 0.0D, block, sideHit, worldObj.getBlockMetadata(x, y, z));
    fx.setParticleIcon(icon);
    effectRenderer.addEffect(fx.applyColourMultiplier(x, y, z).multiplyVelocity(0.2F).multipleParticleScaleBy(0.6F));
    return true;
  }
View Full Code Here

        for (int k = 0; k < its; ++k) {
          double px = x + (i + 0.5D) / its;
          double py = y + (j + 0.5D) / its;
          double pz = z + (k + 0.5D) / its;
          int random = rand.nextInt(6);
          EntityDiggingFX fx = new EntityDiggingFX(worldObj, px, py, pz, px - x - 0.5D, py - y - 0.5D, pz - z - 0.5D, BuildCraftTransport.genericPipeBlock, random, meta);
          fx.setParticleIcon(icon);
          effectRenderer.addEffect(fx.applyColourMultiplier(x, y, z));
        }
      }
    }
    return true;
  }
View Full Code Here

TOP

Related Classes of net.minecraft.client.particle.EntityDiggingFX

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.