public class SoundInfo extends Object
Constructor and Description |
---|
SoundInfo(org.bukkit.Sound sound)
Constructs a new GlowSound with the given sound and a volume and pitch of 1.
|
SoundInfo(org.bukkit.Sound sound,
float volume,
float pitch) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
float |
getPitch()
The pitch multiplier.
|
org.bukkit.Sound |
getSound()
The Bukkit sound enum constant.
|
float |
getVolume()
The volume.
|
int |
hashCode() |
void |
play(org.bukkit.Location location)
Plays the sound to all players at the given location.
|
void |
playTo(org.bukkit.entity.Player player,
org.bukkit.Location location)
Plays the sound to the given player at the given location.
|
String |
toString() |
public SoundInfo(org.bukkit.Sound sound)
sound
- The Bukkit sound enum constantpublic SoundInfo(org.bukkit.Sound sound, float volume, float pitch)
public void play(org.bukkit.Location location)
location
- Location at which to play the soundpublic void playTo(org.bukkit.entity.Player player, org.bukkit.Location location)
player
- Player to which to play the soundlocation
- Location at which to play the soundpublic org.bukkit.Sound getSound()
public float getVolume()
public float getPitch()
protected boolean canEqual(Object other)
Copyright © 2021. All rights reserved.