public class VolumeChangeEvent extends PlayerEvent<VolumeChangeEvent>
PlayerEventTypes.VOLUMECHANGE
occurs for the Player
.
- The players volume percentage as a rational number between 0 and 1.
- Changes the value of Player.getVolume()
.
Modifier and Type | Field and Description |
---|---|
static String |
JS_PROCESSOR_FUNC |
Modifier and Type | Method and Description |
---|---|
double |
getCurrentTime()
The time at which the volume of the player was changed, in seconds.
|
double |
getVolume()
The new volume of the player.
|
public static final String JS_PROCESSOR_FUNC
public double getCurrentTime()
public double getVolume()
- This is a percentage, represented as a rational number between 0 and 1.