VoiceGroupInfo - SocketSVC Docs
SocketSVC Docs

VoiceGroupInfo

An immutable snapshot of one voice group, as handed to addons and pushed to clients.

這一頁還沒有翻譯,以下顯示英文原文。

Generated from source

Record com.socketsvc.api.VoiceGroupInfo — generated from VoiceGroupInfo.java. Edit the Javadoc in the Java source, then run pnpm gen:api.

package com.socketsvc.api;

public record VoiceGroupInfo(UUID id, String name, VoiceGroupType type, boolean passwordProtected, boolean persistent, UUID owner, Set<UUID> members) { ... }

An immutable snapshot of one voice group, as handed to addons and pushed to clients.

A snapshot, not a handle: the members are those at the moment it was taken, and nothing on it changes afterwards. Mutating operations live on the server API (SocketSvcApi / SocketSvcModApi) and are keyed by #id(), so an addon holding an old snapshot cannot accidentally act on a membership that has moved on.

#passwordProtected() is a flag rather than the password itself. The password never leaves the server, which is also why it is the one thing about a group that no client and no addon can read back.

Components

ComponentDescription
UUID idstable identity, generated when the group is created
String namedisplay name, 1-24 characters, unique among live groups (case-insensitive)
VoiceGroupType typehow the group relates to proximity chat, see VoiceGroupType
boolean passwordProtectedwhether joining requires a password
boolean persistentwhether the group survives its last member leaving
UUID ownerthe player who created it, or null for a group an addon or the console created
Set<UUID> membersthe players in it right now

Methods

memberCount

public int memberCount()

contains

public boolean contains(UUID player)

本頁內容

以 Markdown 檢視

詢問 AI 這一頁的內容