Interface VoicechatConnection


public interface VoicechatConnection
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    boolean
    This might not represent the actual state of the voice chat connection.
    boolean
     
    boolean
     
    boolean
     
    void
    setConnected(boolean connected)
    The players disconnected state will reset if its actual disconnected state changes or if the player reconnects.
    void
    setDisabled(boolean disabled)
    Sets the players disabled state.
    void
    setGroup(Group group)
    Joins this player to the provided group.
  • Method Details

    • getGroup

      @Nullable Group getGroup()
      Returns:
      the group of the player - null if the player is not in a group
    • isInGroup

      boolean isInGroup()
      Returns:
      if the player is in a group
    • setGroup

      void setGroup(@Nullable Group group)
      Joins this player to the provided group.
      Parameters:
      group - the group to join or null to leave the current group
    • isConnected

      boolean isConnected()
      This might not represent the actual state of the voice chat connection.
      Returns:
      if the player is connected to voice chat
    • setConnected

      void setConnected(boolean connected)
      The players disconnected state will reset if its actual disconnected state changes or if the player reconnects. NOTE: This method will only work for players that don't have the mod installed. See isInstalled().
      Parameters:
      connected - if the player should be shown as connected to voice chat
    • isDisabled

      boolean isDisabled()
      Returns:
      If the player muted the sound
    • setDisabled

      void setDisabled(boolean disabled)
      Sets the players disabled state. NOTE: This method will only work for players that don't have the mod installed. See isInstalled().
      Parameters:
      disabled - if the player should have the voice chat disabled icon
    • isInstalled

      boolean isInstalled()
      Returns:
      if the player has a version of voice chat installed that is compatible with the server
    • getPlayer

      ServerPlayer getPlayer()
      Returns:
      the player