Changes

83 bytes removed ,  12:04, 25 October 2020
m
update page links
Line 95: Line 95:  
=== <code> PlayerEntity</code> ===
 
=== <code> PlayerEntity</code> ===
   −
# <code><nowiki>playSound(SoundEvent, volume, pitch)</nowiki></code> (overriding the one in <code>[[latest:advanced:effects:sounds#Entity|Entity]]</code>)
+
# <code><nowiki>playSound(SoundEvent, volume, pitch)</nowiki></code> (overriding the one in <code>[[Sounds#Entity|Entity]]</code>)
 
#* Forwards to <code>World</code>‘s overload (2), passing in <code>this</code> as the player.
 
#* Forwards to <code>World</code>‘s overload (2), passing in <code>this</code> as the player.
#* <code>Client Behavior</code>: Does nothing, see override in <code>[[latest:advanced:effects:sounds#clientplayerentity|ClientPlayerEntity]]</code>.
+
#* <code>Client Behavior</code>: Does nothing, see override in <code>[[Sounds#clientplayerentity|ClientPlayerEntity]]</code>.
 
#* <code>Server Behavior</code>: Plays the sound to everyone nearby <code>except</code> this player.
 
#* <code>Server Behavior</code>: Plays the sound to everyone nearby <code>except</code> this player.
#* <code>Usage</code>: See [[latest:advanced:effects:sounds#clientplayerentity|ClientPlayerEntity]].
+
#* <code>Usage</code>: See <code>[[Sounds#clientplayerentity|ClientPlayerEntity]]</code>.
    
=== <code> ClientPlayerEntity</code> ===
 
=== <code> ClientPlayerEntity</code> ===
   −
# <code><nowiki>playSound(SoundEvent, volume, pitch)</nowiki></code> (overriding the one in <code>[[latest:advanced:effects:sounds#playerentity|PlayerEntity]]</code>)
+
# <code><nowiki>playSound(SoundEvent, volume, pitch)</nowiki></code> (overriding the one in <code>[[Sounds#playerentity|PlayerEntity]]</code>)
 
#* Forwards to <code>World</code>‘s overload (2), passing in <code>this</code> as the player.
 
#* Forwards to <code>World</code>‘s overload (2), passing in <code>this</code> as the player.
 
#* <code>Client Behavior</code>: Just plays the Sound Event.
 
#* <code>Client Behavior</code>: Just plays the Sound Event.
 
#* <code>Server Behavior</code>: Method is client-only.
 
#* <code>Server Behavior</code>: Method is client-only.
 
#* <code>Usage</code>: Just like the ones in <code>World</code>, these two overrides in the player classes seem to be for code that runs together on both sides. The client handles playing the sound to the user, while the server handles everyone else hearing it without re-playing to the original user.
 
#* <code>Usage</code>: Just like the ones in <code>World</code>, these two overrides in the player classes seem to be for code that runs together on both sides. The client handles playing the sound to the user, while the server handles everyone else hearing it without re-playing to the original user.