# tr7zw/notenoughanimations architecture

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

- Interactive diagram: https://gitdiagram.com/tr7zw/notenoughanimations
- Repository: https://github.com/tr7zw/notenoughanimations

## Overview

Not Enough Animations is a client-side Minecraft mod that changes third-person player poses and held-item rendering. Its main workflow starts when the client loads the mod and configuration, then render hooks and player transformation apply enabled animations to model parts or replace held-item rendering. The graph preserves major feature families and the shared animation API, render state, and configuration. Several feature implementations are unsampled, so their internal call paths are not inferred; documented capabilities are cited to the README.

Main entry points: [`src/main/java/dev/tr7zw/notenoughanimations/NEAnimationsLoader.java`](https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/NEAnimationsLoader.java) (Mod loader), [`src/main/java/dev/tr7zw/notenoughanimations/api/BasicAnimation.java`](https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/api/BasicAnimation.java) (Animation API), [`src/main/java/dev/tr7zw/notenoughanimations/access/PlayerData.java`](https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/access/PlayerData.java) (Player animation data), [`src/main/java/dev/tr7zw/notenoughanimations/logic/HeldItemHandler.java`](https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/logic/HeldItemHandler.java) (Held-item handler)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Client Runtime"]
  node_loader["Mod loader"]
  node_transformer["Player transformer"]
  node_provider["Animation provider"]
  node_renderhooks["Render hooks"]
end

subgraph group_animation["Player Animations"]
  node_fullbody["Full-body animations"]
  node_handanimations["Hand animations"]
  node_vanillaanimations["Vanilla pose tweaks"]
  node_rotation["Rotation locking<br/>[RotationLock.java]"]
end

subgraph group_held["Held Items"]
  node_heldhandler["Held-item handler"]
  node_heldapi["Held animation API<br/>[HeldAnimation.java]"]
  node_heldanimations["Held-item animations"]
  node_maprenderer["Map renderer<br/>[MapRenderer.java]"]
end

subgraph group_shared["Shared Services"]
  node_config["Config and defaults<br/>[Config.java]"]
  node_configbase["Config persistence<br/>[NEABaseMod.java]"]
  node_configui["Config screen"]
  node_renderstate["Render state"]
  node_playerdata["Player animation data<br/>[PlayerData.java]"]
  node_animationapi["Animation API"]
  node_poseapi["Pose overwrites<br/>[PoseOverwrite.java]"]
  node_animationutil["Animation utilities<br/>[AnimationUtil.java]"]
  node_nms["Version wrapper<br/>[NMSWrapper.java]"]
  node_renderholder["Render state holder"]
end

node_player(("Local player"))

node_loader -->|"extends"| node_configbase
node_loader -->|"loads"| node_config
node_loader -->|"registers"| node_configui
node_loader -->|"creates"| node_transformer
node_loader -->|"creates"| node_provider
node_loader -->|"creates"| node_heldhandler
node_configbase -->|"persists"| node_config
node_player -.->|"rendered by"| node_renderhooks
node_renderhooks -->|"uses"| node_playerdata
node_renderhooks -->|"uses"| node_renderstate
node_provider -.->|"selects"| node_animationapi
node_transformer -->|"updates"| node_playerdata
node_animationapi -->|"receives"| node_playerdata
node_fullbody -.->|"implements"| node_animationapi
node_handanimations -.->|"implements"| node_animationapi
node_vanillaanimations -.->|"implements"| node_animationapi
node_heldhandler -->|"dispatches"| node_heldapi
node_heldhandler -->|"invokes"| node_heldanimations
node_heldanimations -.->|"reads state"| node_playerdata
node_heldanimations -.->|"renders maps"| node_maprenderer
node_animationutil -.->|"supports"| node_playerdata
node_renderholder -.->|"holds"| node_renderstate
node_heldhandler -->|"checks models"| node_nms
node_configui -->|"edits"| node_config
node_config -->|"configures"| node_rotation

click node_loader "https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/NEAnimationsLoader.java"
click node_config "https://github.com/tr7zw/notenoughanimations/blob/main/NEAVersionless/src/main/java/dev/tr7zw/notenoughanimations/versionless/config/Config.java"
click node_configbase "https://github.com/tr7zw/notenoughanimations/blob/main/NEAVersionless/src/main/java/dev/tr7zw/notenoughanimations/versionless/NEABaseMod.java"
click node_configui "https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/config/ConfigScreenProvider.java"
click node_transformer "https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/logic/PlayerTransformer.java"
click node_provider "https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/logic/AnimationProvider.java"
click node_renderhooks "https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/mixins/PlayerEntityModelMixin.java"
click node_renderstate "https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/access/ExtendedLivingRenderState.java"
click node_playerdata "https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/access/PlayerData.java"
click node_animationapi "https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/api/BasicAnimation.java"
click node_poseapi "https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/api/PoseOverwrite.java"
click node_fullbody "https://github.com/tr7zw/notenoughanimations/tree/main/src/main/java/dev/tr7zw/notenoughanimations/animations/fullbody"
click node_handanimations "https://github.com/tr7zw/notenoughanimations/tree/main/src/main/java/dev/tr7zw/notenoughanimations/animations/hands"
click node_vanillaanimations "https://github.com/tr7zw/notenoughanimations/tree/main/src/main/java/dev/tr7zw/notenoughanimations/animations/vanilla"
click node_rotation "https://github.com/tr7zw/notenoughanimations/blob/main/NEAVersionless/src/main/java/dev/tr7zw/notenoughanimations/versionless/RotationLock.java"
click node_heldhandler "https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/logic/HeldItemHandler.java"
click node_heldapi "https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/api/HeldAnimation.java"
click node_heldanimations "https://github.com/tr7zw/notenoughanimations/tree/main/src/main/java/dev/tr7zw/notenoughanimations/animations/held"
click node_maprenderer "https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/util/MapRenderer.java"
click node_animationutil "https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/util/AnimationUtil.java"
click node_nms "https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/util/NMSWrapper.java"
click node_renderholder "https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/util/RenderStateHolder.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_loader,node_transformer,node_provider,node_renderhooks toneBlue
class node_fullbody,node_handanimations,node_vanillaanimations,node_rotation toneAmber
class node_heldhandler,node_heldapi,node_heldanimations,node_maprenderer toneMint
class node_config,node_configbase,node_configui,node_renderstate,node_playerdata,node_animationapi,node_poseapi,node_animationutil,node_nms,node_renderholder toneRose
class node_player toneIndigo
```

## Components

### Client Runtime

- [Mod loader](https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/NEAnimationsLoader.java): `src/main/java/dev/tr7zw/notenoughanimations/NEAnimationsLoader.java`
- [Player transformer](https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/logic/PlayerTransformer.java): `src/main/java/dev/tr7zw/notenoughanimations/logic/PlayerTransformer.java`
- [Animation provider](https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/logic/AnimationProvider.java): `src/main/java/dev/tr7zw/notenoughanimations/logic/AnimationProvider.java`
- [Render hooks](https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/mixins/PlayerEntityModelMixin.java): `src/main/java/dev/tr7zw/notenoughanimations/mixins/PlayerEntityModelMixin.java`

### Player Animations

- [Full-body animations](https://github.com/tr7zw/notenoughanimations/tree/main/src/main/java/dev/tr7zw/notenoughanimations/animations/fullbody): `src/main/java/dev/tr7zw/notenoughanimations/animations/fullbody`
- [Hand animations](https://github.com/tr7zw/notenoughanimations/tree/main/src/main/java/dev/tr7zw/notenoughanimations/animations/hands): `src/main/java/dev/tr7zw/notenoughanimations/animations/hands`
- [Vanilla pose tweaks](https://github.com/tr7zw/notenoughanimations/tree/main/src/main/java/dev/tr7zw/notenoughanimations/animations/vanilla): `src/main/java/dev/tr7zw/notenoughanimations/animations/vanilla`
- [Rotation locking](https://github.com/tr7zw/notenoughanimations/blob/main/NEAVersionless/src/main/java/dev/tr7zw/notenoughanimations/versionless/RotationLock.java): `NEAVersionless/src/main/java/dev/tr7zw/notenoughanimations/versionless/RotationLock.java`

### Held Items

- [Held-item handler](https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/logic/HeldItemHandler.java): `src/main/java/dev/tr7zw/notenoughanimations/logic/HeldItemHandler.java`
- [Held animation API](https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/api/HeldAnimation.java): `src/main/java/dev/tr7zw/notenoughanimations/api/HeldAnimation.java`
- [Held-item animations](https://github.com/tr7zw/notenoughanimations/tree/main/src/main/java/dev/tr7zw/notenoughanimations/animations/held): `src/main/java/dev/tr7zw/notenoughanimations/animations/held`
- [Map renderer](https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/util/MapRenderer.java): `src/main/java/dev/tr7zw/notenoughanimations/util/MapRenderer.java`

### Shared Services

- [Config and defaults](https://github.com/tr7zw/notenoughanimations/blob/main/NEAVersionless/src/main/java/dev/tr7zw/notenoughanimations/versionless/config/Config.java): `NEAVersionless/src/main/java/dev/tr7zw/notenoughanimations/versionless/config/Config.java`
- [Config persistence](https://github.com/tr7zw/notenoughanimations/blob/main/NEAVersionless/src/main/java/dev/tr7zw/notenoughanimations/versionless/NEABaseMod.java): `NEAVersionless/src/main/java/dev/tr7zw/notenoughanimations/versionless/NEABaseMod.java`
- [Config screen](https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/config/ConfigScreenProvider.java): `src/main/java/dev/tr7zw/notenoughanimations/config/ConfigScreenProvider.java`
- [Render state](https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/access/ExtendedLivingRenderState.java): `src/main/java/dev/tr7zw/notenoughanimations/access/ExtendedLivingRenderState.java`
- [Player animation data](https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/access/PlayerData.java): `src/main/java/dev/tr7zw/notenoughanimations/access/PlayerData.java`
- [Animation API](https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/api/BasicAnimation.java): `src/main/java/dev/tr7zw/notenoughanimations/api/BasicAnimation.java`
- [Pose overwrites](https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/api/PoseOverwrite.java): `src/main/java/dev/tr7zw/notenoughanimations/api/PoseOverwrite.java`
- [Animation utilities](https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/util/AnimationUtil.java): `src/main/java/dev/tr7zw/notenoughanimations/util/AnimationUtil.java`
- [Version wrapper](https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/util/NMSWrapper.java): `src/main/java/dev/tr7zw/notenoughanimations/util/NMSWrapper.java`
- [Render state holder](https://github.com/tr7zw/notenoughanimations/blob/main/src/main/java/dev/tr7zw/notenoughanimations/util/RenderStateHolder.java): `src/main/java/dev/tr7zw/notenoughanimations/util/RenderStateHolder.java`

### Other components

- **Local player**

## Connections

- Mod loader → Config persistence: extends (evidence: `src/main/java/dev/tr7zw/notenoughanimations/NEAnimationsLoader.java`)
- Mod loader → Config and defaults: loads (evidence: `src/main/java/dev/tr7zw/notenoughanimations/NEAnimationsLoader.java`)
- Mod loader → Config screen: registers (evidence: `src/main/java/dev/tr7zw/notenoughanimations/NEAnimationsLoader.java`)
- Mod loader → Player transformer: creates (evidence: `src/main/java/dev/tr7zw/notenoughanimations/NEAnimationsLoader.java`)
- Mod loader → Animation provider: creates (evidence: `src/main/java/dev/tr7zw/notenoughanimations/NEAnimationsLoader.java`)
- Mod loader → Held-item handler: creates (evidence: `src/main/java/dev/tr7zw/notenoughanimations/NEAnimationsLoader.java`)
- Config persistence → Config and defaults: persists (evidence: `NEAVersionless/src/main/java/dev/tr7zw/notenoughanimations/versionless/NEABaseMod.java`)
- Local player → Render hooks: rendered by
- Render hooks → Player animation data: uses (evidence: `src/main/java/dev/tr7zw/notenoughanimations/mixins/PlayerEntityModelMixin.java`)
- Render hooks → Render state: uses (evidence: `src/main/java/dev/tr7zw/notenoughanimations/mixins/PlayerEntityModelMixin.java`)
- Animation provider → Animation API: selects (evidence: `src/main/java/dev/tr7zw/notenoughanimations/logic/AnimationProvider.java`)
- Player transformer → Player animation data: updates (evidence: `src/main/java/dev/tr7zw/notenoughanimations/logic/PlayerTransformer.java`)
- Animation API → Player animation data: receives (evidence: `src/main/java/dev/tr7zw/notenoughanimations/api/BasicAnimation.java`)
- Full-body animations → Animation API: implements (evidence: `src/main/java/dev/tr7zw/notenoughanimations/animations/fullbody/CrawlingAnimation.java`)
- Hand animations → Animation API: implements (evidence: `src/main/java/dev/tr7zw/notenoughanimations/animations/hands/LookAtItemAnimation.java`)
- Vanilla pose tweaks → Animation API: implements (evidence: `src/main/java/dev/tr7zw/notenoughanimations/animations/vanilla/ElytraAnimation.java`)
- Held-item handler → Held animation API: dispatches (evidence: `src/main/java/dev/tr7zw/notenoughanimations/logic/HeldItemHandler.java`)
- Held-item handler → Held-item animations: invokes (evidence: `src/main/java/dev/tr7zw/notenoughanimations/logic/HeldItemHandler.java`)
- Held-item animations → Player animation data: reads state (evidence: `src/main/java/dev/tr7zw/notenoughanimations/animations/held/LanternAnimation.java`)
- Held-item animations → Map renderer: renders maps (evidence: `src/main/java/dev/tr7zw/notenoughanimations/animations/held/MapAnimation.java`)
- Animation utilities → Player animation data: supports
- Render state holder → Render state: holds
- Held-item handler → Version wrapper: checks models (evidence: `src/main/java/dev/tr7zw/notenoughanimations/logic/HeldItemHandler.java`)
- Config screen → Config and defaults: edits (evidence: `src/main/java/dev/tr7zw/notenoughanimations/config/ConfigScreenProvider.java`)
- Config and defaults → Rotation locking: configures (evidence: `NEAVersionless/src/main/java/dev/tr7zw/notenoughanimations/versionless/config/Config.java`)
