Skip to content

Commit

Permalink
api: Don't add SoundStop.sound
Browse files Browse the repository at this point in the history
  • Loading branch information
zml2008 committed Jun 7, 2021
1 parent 1d40408 commit af6f2e8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion api/src/main/java/net/kyori/adventure/sound/SoundImpl.java
Expand Up @@ -59,7 +59,7 @@ public float pitch() {

@Override
public @NotNull SoundStop asStop() {
if (this.stop == null) this.stop = SoundStop.sound(this);
if (this.stop == null) this.stop = SoundStop.namedOnSource(this.name(), this.source());
return this.stop;
}

Expand Down
12 changes: 0 additions & 12 deletions api/src/main/java/net/kyori/adventure/sound/SoundStop.java
Expand Up @@ -175,18 +175,6 @@ public interface SoundStop extends Examinable {
};
}

/**
* Stops a specific sound.
*
* @param sound the sound
* @return a sound stopper
* @since 4.8.0
*/
static @NotNull SoundStop sound(final @NotNull Sound sound) {
requireNonNull(sound, "sound");
return namedOnSource(sound.name(), sound.source());
}

/**
* Gets the sound.
*
Expand Down

0 comments on commit af6f2e8

Please sign in to comment.