com.cryptomorin.xseries.XSound.play()

Here are the examples of the java api com.cryptomorin.xseries.XSound.play() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

15 Source : SoundAction.java
with MIT License
from BetterGUI-MC

@Override
public void addToTaskChain(UUID uuid, TaskChain<?> taskChain) {
    String replacedString = getReplacedString(uuid);
    Optional.ofNullable(Bukkit.getPlayer(uuid)).ifPresent(player -> taskChain.syncFuture(() -> Objects.requireNonNull(XSound.play(player, replacedString)).thenApply(vo -> "sound complete")));
}