# eyecrasher07/lazoboombox architecture

> Architecture diagram of the GitHub repository eyecrasher07/lazoboombox, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/eyecrasher07/lazoboombox
- Repository: https://github.com/eyecrasher07/lazoboombox

## Overview

LazoBoombox is a Minecraft mod that lets players play LazoDiscs recordings from a handheld or placed boombox, broadcasting audio through Plasmo Voice. The documented workflow is: put a recorded disc into the boombox, start playback by holding or placing it, and let nearby players hear it; players can also dye the device and preserve its disc and color when picking it up. The graph combines documented product behavior with sampled Forge 1.19 audio code. Most gameplay handlers and client rendering are unsampled, so their links are documented rather than source-verified.

Main entry points: [`forge/1.19/src/main/java/com/eyecrasher/lazoboombox/voice/BoomboxAudioEngine.java`](https://github.com/eyecrasher07/lazoboombox/blob/main/forge/1.19/src/main/java/com/eyecrasher/lazoboombox/voice/BoomboxAudioEngine.java) (Audio engine), [`forge/1.19/src/main/java/com/eyecrasher/lazoboombox/item/BoomboxItem.java`](https://github.com/eyecrasher07/lazoboombox/blob/main/forge/1.19/src/main/java/com/eyecrasher/lazoboombox/item/BoomboxItem.java) (Boombox item), [`forge/1.19/src/main/java/com/eyecrasher/lazoboombox/block/BoomboxBlock.java`](https://github.com/eyecrasher07/lazoboombox/blob/main/forge/1.19/src/main/java/com/eyecrasher/lazoboombox/block/BoomboxBlock.java) (Placed boombox), [`forge/1.19/src/main/java/com/eyecrasher/lazoboombox/event/BoomboxEvents.java`](https://github.com/eyecrasher07/lazoboombox/blob/main/forge/1.19/src/main/java/com/eyecrasher/lazoboombox/event/BoomboxEvents.java) (Interaction events)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_world["Minecraft interaction"]
  node_boombox["Boombox item<br/>[BoomboxItem.java]"]
  node_placed["Placed boombox<br/>[BoomboxBlock.java]"]
  node_blockdata["Block state"]
  node_events["Interaction events<br/>[BoomboxEvents.java]"]
end

subgraph group_audio["Playback and voice"]
  node_playmanager["Playback manager"]
  node_engine["Audio engine"]
end

subgraph group_custom["Customization and settings"]
  node_dye["Dye recipe"]
  node_color["Color data<br/>[BoomboxData.java]"]
  node_config["Server configuration<br/>[BoomboxConfig.java]"]
  node_hud["Playback timer"]
  node_clientconfig["Client settings"]
end

subgraph group_integration["Mod integrations"]
  node_disc["Recorded disc data"]
  node_feeder["PCM feeder<br/>[LavaPcmFeeder.java]"]
  node_plasmo(("Plasmo Voice"))
  node_sable["Sable compatibility"]
end

node_player(("Player"))
node_nearby(("Nearby players"))

node_player -->|"uses"| node_boombox
node_player -->|"interacts with"| node_placed
node_boombox -.->|"triggers playback"| node_events
node_placed -.->|"triggers playback"| node_events
node_events -.->|"requests playback"| node_playmanager
node_playmanager -.->|"starts or stops"| node_engine
node_engine -->|"opens stream"| node_feeder
node_engine -->|"reads volume"| node_config
node_engine -->|"reads track data"| node_disc
node_engine -->|"sends audio"| node_plasmo
node_plasmo -->|"broadcasts audio"| node_nearby
node_player -->|"crafts"| node_dye
node_dye -.->|"updates color"| node_color
node_boombox -->|"stores disc"| node_disc
node_placed -->|"preserves data"| node_blockdata
node_player -->|"views timer"| node_hud
node_clientconfig -->|"configures display"| node_hud
node_engine -->|"projects position"| node_sable

click node_boombox "https://github.com/eyecrasher07/lazoboombox/blob/main/forge/1.19/src/main/java/com/eyecrasher/lazoboombox/item/BoomboxItem.java"
click node_placed "https://github.com/eyecrasher07/lazoboombox/blob/main/forge/1.19/src/main/java/com/eyecrasher/lazoboombox/block/BoomboxBlock.java"
click node_blockdata "https://github.com/eyecrasher07/lazoboombox/blob/main/forge/1.19/src/main/java/com/eyecrasher/lazoboombox/block/BoomboxBlockEntity.java"
click node_disc "https://github.com/eyecrasher07/lazoboombox/blob/main/forge/1.19/src/main/java/com/eyecrasher/lazodiscs/data/CustomDiscData.java"
click node_events "https://github.com/eyecrasher07/lazoboombox/blob/main/forge/1.19/src/main/java/com/eyecrasher/lazoboombox/event/BoomboxEvents.java"
click node_playmanager "https://github.com/eyecrasher07/lazoboombox/blob/main/forge/1.19/src/main/java/com/eyecrasher/lazoboombox/server/BoomboxPlaybackManager.java"
click node_engine "https://github.com/eyecrasher07/lazoboombox/blob/main/forge/1.19/src/main/java/com/eyecrasher/lazoboombox/voice/BoomboxAudioEngine.java"
click node_feeder "https://github.com/eyecrasher07/lazoboombox/blob/main/forge/1.19/src/main/java/com/eyecrasher/lazodiscs/voice/LavaPcmFeeder.java"
click node_dye "https://github.com/eyecrasher07/lazoboombox/blob/main/forge/1.19/src/main/java/com/eyecrasher/lazoboombox/recipe/BoomboxDyeRecipe.java"
click node_color "https://github.com/eyecrasher07/lazoboombox/blob/main/forge/1.19/src/main/java/com/eyecrasher/lazoboombox/data/BoomboxData.java"
click node_config "https://github.com/eyecrasher07/lazoboombox/blob/main/forge/1.19/src/main/java/com/eyecrasher/lazoboombox/config/BoomboxConfig.java"
click node_hud "https://github.com/eyecrasher07/lazoboombox/blob/main/forge/1.19/src/main/java/com/eyecrasher/lazoboombox/client/BoomboxHudOverlay.java"
click node_clientconfig "https://github.com/eyecrasher07/lazoboombox/blob/main/forge/1.19/src/main/java/com/eyecrasher/lazoboombox/client/BoomboxClientConfig.java"
click node_sable "https://github.com/eyecrasher07/lazoboombox/blob/main/forge/1.19/src/main/java/com/eyecrasher/lazoboombox/compat/BoomboxSableCompat.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_boombox,node_placed,node_blockdata,node_events toneBlue
class node_playmanager,node_engine toneAmber
class node_dye,node_color,node_config,node_hud,node_clientconfig toneMint
class node_disc,node_feeder,node_plasmo,node_sable toneRose
class node_player,node_nearby toneIndigo
```

## Components

### Minecraft interaction

- [Boombox item](https://github.com/eyecrasher07/lazoboombox/blob/main/forge/1.19/src/main/java/com/eyecrasher/lazoboombox/item/BoomboxItem.java): `forge/1.19/src/main/java/com/eyecrasher/lazoboombox/item/BoomboxItem.java`
- [Placed boombox](https://github.com/eyecrasher07/lazoboombox/blob/main/forge/1.19/src/main/java/com/eyecrasher/lazoboombox/block/BoomboxBlock.java): `forge/1.19/src/main/java/com/eyecrasher/lazoboombox/block/BoomboxBlock.java`
- [Block state](https://github.com/eyecrasher07/lazoboombox/blob/main/forge/1.19/src/main/java/com/eyecrasher/lazoboombox/block/BoomboxBlockEntity.java): `forge/1.19/src/main/java/com/eyecrasher/lazoboombox/block/BoomboxBlockEntity.java`
- [Interaction events](https://github.com/eyecrasher07/lazoboombox/blob/main/forge/1.19/src/main/java/com/eyecrasher/lazoboombox/event/BoomboxEvents.java): `forge/1.19/src/main/java/com/eyecrasher/lazoboombox/event/BoomboxEvents.java`

### Playback and voice

- [Playback manager](https://github.com/eyecrasher07/lazoboombox/blob/main/forge/1.19/src/main/java/com/eyecrasher/lazoboombox/server/BoomboxPlaybackManager.java): `forge/1.19/src/main/java/com/eyecrasher/lazoboombox/server/BoomboxPlaybackManager.java`
- [Audio engine](https://github.com/eyecrasher07/lazoboombox/blob/main/forge/1.19/src/main/java/com/eyecrasher/lazoboombox/voice/BoomboxAudioEngine.java): `forge/1.19/src/main/java/com/eyecrasher/lazoboombox/voice/BoomboxAudioEngine.java`

### Customization and settings

- [Dye recipe](https://github.com/eyecrasher07/lazoboombox/blob/main/forge/1.19/src/main/java/com/eyecrasher/lazoboombox/recipe/BoomboxDyeRecipe.java): `forge/1.19/src/main/java/com/eyecrasher/lazoboombox/recipe/BoomboxDyeRecipe.java`
- [Color data](https://github.com/eyecrasher07/lazoboombox/blob/main/forge/1.19/src/main/java/com/eyecrasher/lazoboombox/data/BoomboxData.java): `forge/1.19/src/main/java/com/eyecrasher/lazoboombox/data/BoomboxData.java`
- [Server configuration](https://github.com/eyecrasher07/lazoboombox/blob/main/forge/1.19/src/main/java/com/eyecrasher/lazoboombox/config/BoomboxConfig.java): `forge/1.19/src/main/java/com/eyecrasher/lazoboombox/config/BoomboxConfig.java`
- [Playback timer](https://github.com/eyecrasher07/lazoboombox/blob/main/forge/1.19/src/main/java/com/eyecrasher/lazoboombox/client/BoomboxHudOverlay.java): `forge/1.19/src/main/java/com/eyecrasher/lazoboombox/client/BoomboxHudOverlay.java`
- [Client settings](https://github.com/eyecrasher07/lazoboombox/blob/main/forge/1.19/src/main/java/com/eyecrasher/lazoboombox/client/BoomboxClientConfig.java): `forge/1.19/src/main/java/com/eyecrasher/lazoboombox/client/BoomboxClientConfig.java`

### Mod integrations

- [Recorded disc data](https://github.com/eyecrasher07/lazoboombox/blob/main/forge/1.19/src/main/java/com/eyecrasher/lazodiscs/data/CustomDiscData.java): `forge/1.19/src/main/java/com/eyecrasher/lazodiscs/data/CustomDiscData.java`
- [PCM feeder](https://github.com/eyecrasher07/lazoboombox/blob/main/forge/1.19/src/main/java/com/eyecrasher/lazodiscs/voice/LavaPcmFeeder.java): `forge/1.19/src/main/java/com/eyecrasher/lazodiscs/voice/LavaPcmFeeder.java`
- **Plasmo Voice**
- [Sable compatibility](https://github.com/eyecrasher07/lazoboombox/blob/main/forge/1.19/src/main/java/com/eyecrasher/lazoboombox/compat/BoomboxSableCompat.java): `forge/1.19/src/main/java/com/eyecrasher/lazoboombox/compat/BoomboxSableCompat.java`

### Other components

- **Player**
- **Nearby players**

## Connections

- Player → Boombox item: uses (evidence: `README.md`)
- Player → Placed boombox: interacts with (evidence: `README.md`)
- Boombox item → Interaction events: triggers playback
- Placed boombox → Interaction events: triggers playback
- Interaction events → Playback manager: requests playback
- Playback manager → Audio engine: starts or stops
- Audio engine → PCM feeder: opens stream (evidence: `forge/1.19/src/main/java/com/eyecrasher/lazoboombox/voice/BoomboxAudioEngine.java`)
- Audio engine → Server configuration: reads volume (evidence: `forge/1.19/src/main/java/com/eyecrasher/lazoboombox/voice/BoomboxAudioEngine.java`)
- Audio engine → Recorded disc data: reads track data (evidence: `forge/1.19/src/main/java/com/eyecrasher/lazoboombox/voice/BoomboxAudioEngine.java`)
- Audio engine → Plasmo Voice: sends audio (evidence: `README.md`)
- Plasmo Voice → Nearby players: broadcasts audio (evidence: `README.md`)
- Player → Dye recipe: crafts (evidence: `README.md`)
- Dye recipe → Color data: updates color
- Boombox item → Recorded disc data: stores disc (evidence: `README.md`)
- Placed boombox → Block state: preserves data (evidence: `README.md`)
- Player → Playback timer: views timer (evidence: `README.md`)
- Client settings → Playback timer: configures display (evidence: `README.md`)
- Audio engine → Sable compatibility: projects position (evidence: `forge/1.19/src/main/java/com/eyecrasher/lazoboombox/voice/BoomboxAudioEngine.java`)
