Interface VolumeConfigAccessor
public interface VolumeConfigAccessor
An interface to access client side adjusted volumes.
Can be obtained by calling
Can be obtained by calling
VoicechatClientApi.getVolumeConfig().-
Method Summary
Modifier and TypeMethodDescriptiondoublegetCategoryVolume(String category) Gets the volume of a category by its UUID.doubleGets the volume of a player by its UUID.
-
Method Details
-
getVolume
Gets the volume of a player by its UUID.
This will always return a value, even if the player is not in the volume config.
By default, the volume will be1.0. A volume of0.0means this player is muted. Can be larger than1.0. Also works for players that are not online.
If you want theOthervolume (All volumes that are not covered by categories or players), use the UUID00000000-0000-0000-0000-000000000000.- Parameters:
uuid- the UUID of the player- Returns:
- the volume of the player
- Throws:
NullPointerException- if the UUID is null
-
getCategoryVolume
Gets the volume of a category by its UUID.
This will always return a value, even if the category doesn't exist.
By default, the volume will be1.0. A volume of0.0means this category is muted. Can be larger than1.0. Also works for categories that are currently not registered.- Parameters:
category- the category- Returns:
- the volume of the category
- Throws:
NullPointerException- if the category is null
-