Interface VoiceWallService
public interface VoiceWallService
Acoustic engine service managing wall sound occlusion, acoustic pathfinding through apertures,
air damping, and real-time particle raycast debugging.
-
Method Summary
Modifier and TypeMethodDescription@NotNull VoiceWallModegetMode()Gets the active occlusion mode.booleanhasDebugPlayer(@NotNull UUID playerUuid) Checks whether a player has visual particle debugging enabled.voidinit(@NotNull de.maxhenkel.voicechat.api.VoicechatServerApi api) Initializes the VoiceWall service with the Simple Voice Chat server API.booleanChecks whether high-frequency air damping over distance is active.booleanisDebug()Checks whether debug logging is enabled.booleanisEnable()Checks whether the VoiceWall acoustic engine is globally enabled.default booleanConvenience check if strict block mode (100% soundproof) is active.voidprocessEntitySoundPacket(@NotNull de.maxhenkel.voicechat.api.events.EntitySoundPacketEvent event, @NotNull VPlayer vSender, @NotNull VPlayer vReceiver, @NotNull de.maxhenkel.voicechat.api.VoicechatConnection receiverConn) Intercepts and processes a positional entity sound packet, performing acoustic raycasting and attenuation.voidsetAirDampingEnabled(boolean value) Sets high-frequency air damping over distance.voidsetDebug(boolean value) Sets debug logging flag.voidsetDebugPlayer(@NotNull UUID playerUuid, boolean enabled) Sets visual particle debugging state for a player.voidsetEnable(boolean value) Enables or disables VoiceWall globally.voidsetMode(@NotNull VoiceWallMode mode) Sets the active occlusion mode.booleantoggleDebugPlayer(@NotNull org.bukkit.entity.Player player) Toggles visual particle raycast debugging and Action Bar diagnostics for a player.
-
Method Details
-
init
void init(@NotNull @NotNull de.maxhenkel.voicechat.api.VoicechatServerApi api) Initializes the VoiceWall service with the Simple Voice Chat server API.- Parameters:
api- the VoicechatServerApi instance
-
isEnable
boolean isEnable()Checks whether the VoiceWall acoustic engine is globally enabled.- Returns:
trueif active
-
setEnable
void setEnable(boolean value) Enables or disables VoiceWall globally.- Parameters:
value- the enabled flag
-
getMode
Gets the active occlusion mode.- Returns:
- the
VoiceWallMode
-
setMode
Sets the active occlusion mode.- Parameters:
mode- the newVoiceWallMode
-
isStrictBlock
default boolean isStrictBlock()Convenience check if strict block mode (100% soundproof) is active.- Returns:
trueif strict block mode
-
isAirDampingEnabled
boolean isAirDampingEnabled()Checks whether high-frequency air damping over distance is active.- Returns:
trueif air damping is enabled
-
setAirDampingEnabled
void setAirDampingEnabled(boolean value) Sets high-frequency air damping over distance.- Parameters:
value- the air damping flag
-
isDebug
boolean isDebug()Checks whether debug logging is enabled.- Returns:
trueif debug is active
-
setDebug
void setDebug(boolean value) Sets debug logging flag.- Parameters:
value- debug flag
-
toggleDebugPlayer
boolean toggleDebugPlayer(@NotNull @NotNull org.bukkit.entity.Player player) Toggles visual particle raycast debugging and Action Bar diagnostics for a player.- Parameters:
player- the player- Returns:
- new debugging state (
trueif enabled)
-
hasDebugPlayer
Checks whether a player has visual particle debugging enabled.- Parameters:
playerUuid- the player UUID- Returns:
trueif debug active for this player
-
setDebugPlayer
Sets visual particle debugging state for a player.- Parameters:
playerUuid- the player UUIDenabled- debugging flag
-
processEntitySoundPacket
void processEntitySoundPacket(@NotNull @NotNull de.maxhenkel.voicechat.api.events.EntitySoundPacketEvent event, @NotNull @NotNull VPlayer vSender, @NotNull @NotNull VPlayer vReceiver, @NotNull @NotNull de.maxhenkel.voicechat.api.VoicechatConnection receiverConn) Intercepts and processes a positional entity sound packet, performing acoustic raycasting and attenuation.- Parameters:
event- the intercepted SVC entity sound packet eventvSender- the sender voice player wrappervReceiver- the receiver voice player wrapperreceiverConn- the receiver voicechat connection
-