MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / playSoundAtEntity

Method playSoundAtEntity

src/main/java/net/minecraft/world/World.java:1067–1073  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 15

dispenseStackMethod · 0.95
handleCollectItemMethod · 0.80
onItemRightClickMethod · 0.80
onItemRightClickMethod · 0.80
onItemRightClickMethod · 0.80
onItemRightClickMethod · 0.80
onPlayerStoppedUsingMethod · 0.80
onItemRightClickMethod · 0.80
onItemUseFinishMethod · 0.80
onItemRightClickMethod · 0.80
onItemRightClickMethod · 0.80

Calls 3

playSoundMethod · 0.65
getMethod · 0.65
sizeMethod · 0.45

Tested by

no test coverage detected