Plays a sound at the entity's position. Args: entity, sound, volume (relative to 1.0), and frequency (or pitch, also relative to 1.0).
(Entity entityIn, String name, float volume, float pitch)
| 1065 | * also relative to 1.0). |
| 1066 | */ |
| 1067 | public void playSoundAtEntity(Entity entityIn, String name, float volume, float pitch) |
| 1068 | { |
| 1069 | for (int i = 0; i < this.worldAccesses.size(); ++i) |
| 1070 | { |
| 1071 | this.worldAccesses.get(i).playSound(name, entityIn.posX, entityIn.posY, entityIn.posZ, volume, pitch); |
| 1072 | } |
| 1073 | } |
| 1074 | |
| 1075 | /** |
| 1076 | * Plays sound to all near players except the player reference given |
no test coverage detected