Contents
Record Class PlayerVoiceSettings
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.modules.entity.player.PlayerVoiceSettings
- Record Components:
voiceChatEnabled- Whether the player has voice chat enabled at all.voiceInputEnabled- Whether voice input is enabled for this player.voiceInputMode- TheVoiceInputModeused to determine how voice input is captured for this player.
public record PlayerVoiceSettings(boolean voiceChatEnabled, boolean voiceInputEnabled, VoiceInputMode voiceInputMode)
extends Record
Represents the voice-specific settings for a player entity.
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerVoiceSettings(boolean voiceChatEnabled, boolean voiceInputEnabled, VoiceInputMode voiceInputMode) Creates an instance of aPlayerVoiceSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic PlayerVoiceSettingsdefaults()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thevoiceChatEnabledrecord component.booleanReturns the value of thevoiceInputEnabledrecord component.Returns the value of thevoiceInputModerecord component.
-
Constructor Details
-
PlayerVoiceSettings
public PlayerVoiceSettings() -
PlayerVoiceSettings
public PlayerVoiceSettings(boolean voiceChatEnabled, boolean voiceInputEnabled, VoiceInputMode voiceInputMode) Creates an instance of aPlayerVoiceSettingsrecord class.- Parameters:
voiceChatEnabled- the value for thevoiceChatEnabledrecord componentvoiceInputEnabled- the value for thevoiceInputEnabledrecord componentvoiceInputMode- the value for thevoiceInputModerecord component
-
-
Method Details
-
defaults
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
voiceChatEnabled
public boolean voiceChatEnabled()Returns the value of thevoiceChatEnabledrecord component.- Returns:
- the value of the
voiceChatEnabledrecord component
-
voiceInputEnabled
public boolean voiceInputEnabled()Returns the value of thevoiceInputEnabledrecord component.- Returns:
- the value of the
voiceInputEnabledrecord component
-
voiceInputMode
Returns the value of thevoiceInputModerecord component.- Returns:
- the value of the
voiceInputModerecord component
-