Examples of playSoundEffect()


Examples of net.minecraft.world.World.playSoundEffect()

    BlockCoord dirtLoc = plantingLocation.getLocation(ForgeDirection.DOWN);
    Block dirtBlock = farm.getBlock(dirtLoc);
    if((dirtBlock == Blocks.dirt || dirtBlock == Blocks.grass) && farm.hasHoe()) {
      farm.damageHoe(1, dirtLoc);
      worldObj.setBlock(dirtLoc.x, dirtLoc.y, dirtLoc.z, Blocks.farmland);
      worldObj.playSoundEffect(dirtLoc.x + 0.5F, dirtLoc.y + 0.5F, dirtLoc.z + 0.5F, Blocks.farmland.stepSound.getStepResourcePath(),
          (Blocks.farmland.stepSound.getVolume() + 1.0F) / 2.0F, Blocks.farmland.stepSound.getPitch() * 0.8F);
      farm.actionPerformed(false);
      return true;
    }
    return false;
View Full Code Here

Examples of net.minecraft.world.World.playSoundEffect()

    {
        World world = world();
        if(world.isRemote)
            return true;

        world.playSoundEffect(x() + 0.5, y() + 0.5, z() + 0.5, "random.click", 0.3F, !active() ? 0.6F : 0.5F);
        meta ^= 8;
        sendDescUpdate();
        tile().notifyPartChange(this);
        tile().notifyNeighborChange(metaSideMap[meta&7]);
        tile().markDirty();
View Full Code Here

Examples of net.minecraft.world.World.playSoundEffect()

        {
            if(burnedOut(true))
            {
                World world = world();
                Random rand = world.rand;
                world.playSoundEffect(x()+0.5, y()+0.5, z()+0.5, "random.fizz", 0.5F, 2.6F + (rand.nextFloat() - rand.nextFloat()) * 0.8F);
                McMultipartSPH.spawnBurnoutSmoke(world, x(), y(), z());
            }
        }
        else if(burnedOut(false))
        {
View Full Code Here

Examples of net.minecraft.world.World.playSoundEffect()

      te.unequip(carrier, despawn);
   
    String sound = blockBackpack.stepSound.func_150496_b();
    float volume = (blockBackpack.stepSound.getVolume() + 1.0F) / 2.0F;
    float pitch = blockBackpack.stepSound.getPitch() * 0.8F;
    world.playSoundEffect(x + 0.5, y + 0.5, z + 0.5F, sound, volume, pitch);
   
    backpack.stackSize--;
   
    return true;
   
View Full Code Here

Examples of net.minecraft.world.World.playSoundEffect()

      }

      if (world.rand.nextInt(1000) >= chance)
        continue;

      world.playSoundEffect(housing.getXCoord(), housing.getYCoord(), housing.getZCoord(), "mob.creeper", 4F,
          (1.0F + (world.rand.nextFloat() - world.rand.nextFloat()) * 0.2F) * 0.7F);
      storedData.setInteger(indexExplosionTimer, 2); // Set explosion
      // timer
    }

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.