
VoiceChat Interaction
VoiceChat Interaction lets Sculk sensors and the Warden react to real player voice chat (Simple Voice Chat) in Minecraft.
954
3
Список изменений
Changed
- Major code refactoring and optimization across all classes:
VoiceChatEventBridge: Improved code structure, method naming, and comprehensive JavaDoc documentationVoiceChatInteractionCommand: Eliminated code duplication, split toggle logic into focused methodsVoiceChatInteraction: Enhanced error handling, better resource management, and startup validationServerConfig: Extracted validation logic into separate methods for better maintainability
- Performance improvements:
- Made constants static final and moved NamespacedKey to class level for better performance
- Improved method parameter validation with
@Nullableannotations - Enhanced thread safety and reduced unnecessary object creation
- Code quality enhancements:
- Added
finalparameters throughout for better compile-time optimization - Improved variable and method naming for better readability
- Split large methods into smaller, focused methods with clear responsibilities
- Added
Fixed
- Enhanced error handling:
- Better exception handling during audio decoding operations
- Robust configuration loading with proper error recovery
- Command registration validation to prevent silent failures
- Memory management:
- Added memory leak prevention with cooldown cleanup mechanism
- Improved resource cleanup and disposal
- Dead code removal:
- Removed unused static fields
voicechatApiandvoicechatServerApifromVoiceChatEventBridge - Eliminated unnecessary API reference storage for better performance
- Removed unused static fields
Added
- New utility methods:
cleanupExpiredCooldowns()method to prevent memory leaks from old cooldown entries- Separate validation methods for configuration values
- Helper methods for toggle command handling to reduce code duplication
- Enhanced logging:
- More detailed startup and error logging
- Better status messages for voice chat server integration
- Improved warning messages with specific value information
Файлы
voicechat-interaction-1.0.2.jar(20.01 KiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
1.0.2
Загрузчики
PaperPurpur
Версии игры
1.21.8–1.21.10
Загрузок
10
Дата публикации
4 мес. назад
