Package de.maxhenkel.voicechat.api
Interface VoicechatClientApi
- All Superinterfaces:
VoicechatApi
-
Method Summary
Modifier and TypeMethodDescriptioncreateEntityAudioChannel
(UUID uuid) Creates a client side entity audio channel.createLocationalAudioChannel
(UUID uuid, Position position) Creates a client side locational audio channel.createStaticAudioChannel
(UUID uuid) Creates a client side static audio channel.getGroup()
boolean
boolean
boolean
isMuted()
void
registerClientVolumeCategory
(VolumeCategory category) Registers a volume category just for this client.default void
unregisterClientVolumeCategory
(VolumeCategory category) Unregisters a category on this client.void
unregisterClientVolumeCategory
(String categoryId) Unregisters a category on this client.Methods inherited from interface de.maxhenkel.voicechat.api.VoicechatApi
createDecoder, createEncoder, createEncoder, createMp3Decoder, createMp3Encoder, createPosition, fromEntity, fromServerLevel, fromServerPlayer, getAudioConverter, getVoiceChatDistance, volumeCategoryBuilder
-
Method Details
-
isMuted
boolean isMuted()- Returns:
- if the voice chat is muted
-
isDisabled
boolean isDisabled()- Returns:
- if the voice chat is disabled
-
isDisconnected
boolean isDisconnected()- Returns:
- if the voice chat is disconnected from the server
-
getGroup
-
createEntityAudioChannel
Creates a client side entity audio channel.- Parameters:
uuid
- the UUID of the entity- Returns:
- the audio channel
-
createLocationalAudioChannel
Creates a client side locational audio channel.- Parameters:
uuid
- the ID of the channel- Returns:
- the audio channel
-
createStaticAudioChannel
Creates a client side static audio channel.- Parameters:
uuid
- the ID of the channel- Returns:
- the audio channel
-
registerClientVolumeCategory
Registers a volume category just for this client. A category can be created withVoicechatApi.volumeCategoryBuilder()
. The category can be unregistered withunregisterClientVolumeCategory(de.maxhenkel.voicechat.api.VolumeCategory)
.- Parameters:
category
- the category to register
-
unregisterClientVolumeCategory
Unregisters a category on this client. This will release the texture ID for the icon if one exists.- Parameters:
category
- the category to remove
-
unregisterClientVolumeCategory
Unregisters a category on this client. This will release the texture ID for the icon if one exists.- Parameters:
categoryId
- the category ID to remove
-
getClientConfig
ConfigAccessor getClientConfig()- Returns:
- a read-only config accessor for the mods client config
-