Uses of Class
com.cryptomorin.xseries.XSound.SoundPlayer
-
Uses of XSound.SoundPlayer in com.cryptomorin.xseries
Modifier and TypeMethodDescriptionXSound.SoundPlayer.atLocation
(org.bukkit.Location location) Plays the sound to all the nearby players (based on the specified volume)XSound.SoundPlayer.forPlayers
(Collection<org.bukkit.entity.Player> players) Play the sound for the given players.XSound.SoundPlayer.forPlayers
(org.bukkit.entity.Player... players) Plays the sound only for a single player and no one else can hear it.XSound.Record.soundPlayer()
XSound.SoundPlayer.withRecord
(XSound.Record record) Modifier and TypeMethodDescriptionstatic XSound.Record
XSound.play
(String sound, Consumer<XSound.SoundPlayer> soundPlayer) A short handy method to play a sound from configs.