Commits

md_5 authored c1a8e12c9ce
Add stopSound for specific sound category
No tags

src/main/java/org/bukkit/entity/Player.java

Modified
277 277 */
278 278 public void stopSound(Sound sound);
279 279
280 280 /**
281 281 * Stop the specified sound from playing.
282 282 *
283 283 * @param sound the sound to stop
284 284 */
285 285 public void stopSound(String sound);
286 286
287 + /**
288 + * Stop the specified sound from playing.
289 + *
290 + * @param sound the sound to stop
291 + * @param category the category of the sound
292 + */
293 + public void stopSound(Sound sound, SoundCategory category);
294 +
295 + /**
296 + * Stop the specified sound from playing.
297 + *
298 + * @param sound the sound to stop
299 + * @param category the category of the sound
300 + */
301 + public void stopSound(String sound, SoundCategory category);
302 +
287 303 /**
288 304 * Plays an effect to just this player.
289 305 *
290 306 * @param loc the location to play the effect at
291 307 * @param effect the {@link Effect}
292 308 * @param data a data bit needed for some effects
293 309 * @deprecated Magic value
294 310 */
295 311 @Deprecated
296 312 public void playEffect(Location loc, Effect effect, int data);

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut