Interface VoicechatClientApi

All Superinterfaces:
VoicechatApi

public interface VoicechatClientApi extends VoicechatApi
  • 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

      @Nullable Group getGroup()
    • createEntityAudioChannel

      ClientEntityAudioChannel createEntityAudioChannel(UUID uuid)
      Creates a client side entity audio channel.
      Parameters:
      uuid - the UUID of the entity
      Returns:
      the audio channel
    • createLocationalAudioChannel

      ClientLocationalAudioChannel createLocationalAudioChannel(UUID uuid, Position position)
      Creates a client side locational audio channel.
      Parameters:
      uuid - the ID of the channel
      Returns:
      the audio channel
    • createStaticAudioChannel

      ClientStaticAudioChannel createStaticAudioChannel(UUID uuid)
      Creates a client side static audio channel.
      Parameters:
      uuid - the ID of the channel
      Returns:
      the audio channel
    • registerClientVolumeCategory

      void registerClientVolumeCategory(VolumeCategory category)
      Registers a volume category just for this client. A category can be created with VoicechatApi.volumeCategoryBuilder(). The category can be unregistered with unregisterClientVolumeCategory(de.maxhenkel.voicechat.api.VolumeCategory).
      Parameters:
      category - the category to register
    • unregisterClientVolumeCategory

      default void unregisterClientVolumeCategory(VolumeCategory category)
      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

      void unregisterClientVolumeCategory(String categoryId)
      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