Play a sound effect. Many many parameters for this function. Not sure what they do, but a classic call is : (double)i + 0.5D, (double)j + 0.5D, (double)k + 0.5D, 'random.door_open', 1.0F, world.rand.nextFloat() 0.1F + 0.9F with i,j,k position of the block.
(double x, double y, double z, String soundName, float volume, float pitch)
| 1089 | * 0.9F with i,j,k position of the block. |
| 1090 | */ |
| 1091 | public void playSoundEffect(double x, double y, double z, String soundName, float volume, float pitch) |
| 1092 | { |
| 1093 | for (int i = 0; i < this.worldAccesses.size(); ++i) |
| 1094 | { |
| 1095 | this.worldAccesses.get(i).playSound(soundName, x, y, z, volume, pitch); |
| 1096 | } |
| 1097 | } |
| 1098 | |
| 1099 | /** |
| 1100 | * par8 is loudness, all pars passed to minecraftInstance.sndManager.playSound |
no test coverage detected