Skip to content

Commit

Permalink
change(World#playSound): explain the behavior on client vs. server in…
Browse files Browse the repository at this point in the history
… more detail
  • Loading branch information
Octol1ttle committed Nov 17, 2024
1 parent cfb9f1a commit 4ec564c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions mappings/net/minecraft/world/World.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ CLASS net/minecraft/class_1937 net/minecraft/world/World
METHOD method_43127 getSpawnAngle ()F
METHOD method_43128 playSound (Lnet/minecraft/class_1657;DDDLnet/minecraft/class_3414;Lnet/minecraft/class_3419;FF)V
ARG 1 source
COMMENT the player that caused the sound and therefore plays the sound directly in
COMMENT the client, or {@code null}
COMMENT the player that caused this sound, or {@code null}. On the client, the sound will only if if the source is the same as the client's player.
COMMENT On the server, sound packets will be sent to players around the source, excluding the source itself.
ARG 2 x
ARG 4 y
ARG 6 z
Expand All @@ -155,8 +155,8 @@ CLASS net/minecraft/class_1937 net/minecraft/world/World
ARG 11 pitch
METHOD method_43129 playSoundFromEntity (Lnet/minecraft/class_1657;Lnet/minecraft/class_1297;Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;FF)V
ARG 1 source
COMMENT the player that caused the sound and therefore plays the sound directly in
COMMENT the client, or {@code null}
COMMENT the player that caused this sound, or {@code null}. On the client, the sound will only if if the source is the same as the client's player.
COMMENT On the server, sound packets will be sent to players around the source, excluding the source itself.
ARG 2 entity
ARG 3 sound
ARG 4 category
Expand Down Expand Up @@ -206,8 +206,8 @@ CLASS net/minecraft/class_1937 net/minecraft/world/World
ARG 4 entity
METHOD method_47967 playSound (Lnet/minecraft/class_1657;DDDLnet/minecraft/class_3414;Lnet/minecraft/class_3419;FFJ)V
ARG 1 source
COMMENT the player that caused the sound and therefore plays the sound directly in
COMMENT the client, or {@code null}
COMMENT the player that caused this sound, or {@code null}. On the client, the sound will only if if the source is the same as the client's player.
COMMENT On the server, sound packets will be sent to players around the source, excluding the source itself.
ARG 2 x
ARG 4 y
ARG 6 z
Expand Down Expand Up @@ -303,8 +303,8 @@ CLASS net/minecraft/class_1937 net/minecraft/world/World
ARG 1 tickDelta
METHOD method_8449 playSoundFromEntity (Lnet/minecraft/class_1657;Lnet/minecraft/class_1297;Lnet/minecraft/class_6880;Lnet/minecraft/class_3419;FFJ)V
ARG 1 source
COMMENT the player that caused the sound and therefore plays the sound directly in
COMMENT the client, or {@code null}
COMMENT the player that caused this sound, or {@code null}. On the client, the sound will only if if the source is the same as the client's player.
COMMENT On the server, sound packets will be sent to players around the source, excluding the source itself.
ARG 2 entity
ARG 3 sound
ARG 4 category
Expand Down Expand Up @@ -343,8 +343,8 @@ CLASS net/minecraft/class_1937 net/minecraft/world/World
METHOD method_8458 isSavingDisabled ()Z
METHOD method_8465 playSound (Lnet/minecraft/class_1657;DDDLnet/minecraft/class_6880;Lnet/minecraft/class_3419;FFJ)V
ARG 1 source
COMMENT the player that caused the sound and therefore plays the sound directly in
COMMENT the client, or {@code null}
COMMENT the player that caused this sound, or {@code null}. On the client, the sound will only if if the source is the same as the client's player.
COMMENT On the server, sound packets will be sent to players around the source, excluding the source itself.
ARG 2 x
ARG 4 y
ARG 6 z
Expand Down

0 comments on commit 4ec564c

Please sign in to comment.