Package de.maxhenkel.voicechat.api
Interface VoicechatConnection
public interface VoicechatConnection
-
Method Summary
Modifier and TypeMethodDescriptiongetGroup()
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
Joins this player to the provided group.
-
Method Details
-
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
Joins this player to the provided group.- Parameters:
group
- the group to join ornull
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. SeeisInstalled()
.- 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. SeeisInstalled()
.- 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
-