promotional bannermobile promotional banner

BWR-Core

BWR-Core – a library mod providing shared API, render optimizations, and instrumentation hooks.

File Details

BWR_Core-0.3.0#BETA

  • B
  • Feb 6, 2026
  • 276.40 KB
  • 163
  • 1.12.2
  • Forge

File Name

BWR_Core-0.3.0BETA.jar

Supported Versions

  • 1.12.2

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:bwr-core-1422315:7583811")
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

### Major Release 0.3.0
BWR-Core refactored into a clean library architecture with manual, transparent Line-of-Sight API.

#### What's Added:
- **ILOSProvider API** — single public interface for visibility checks between world positions.
- **LOSManager** — provider implementation using 3D Bresenham:
  - Fast, deterministic computation.
  - Minimal memory allocations.
  - Optional primitive cache (FastUtil).
  - Fully manual API: mods call only when needed.

#### What's Removed:
- Legacy render optimization system (RenderOptimizer).
- All server/client commands (/bwr, /bwr_render, etc.) — Core is now a library, not an integration layer.
- Config GUI and keybindings.
- Automatic event hooks and background computation.
- InstrumentationAPI auto-injection mechanism.

#### Architecture:
BWR-Core is now a **library** for use by other mods:
- Independent LOS usage from ExplosionGlass, Shadow, and other projects.
- No auto-registration; each mod decides when it needs a provider.
- Synchronous, thread-safe API.

#### For Mod Developers:
```java
// Creation and usage
com.coders.bwr.core.ILOSProvider los = new com.coders.bwr.core.los.LOSManager(true); // true = enable cache
boolean canSee = los.hasLineOfSight(world, posA, posB, /*ignoreTransparent*/ true);
```

---

**Requires:** Minecraft 1.12.2 + Forge  
**Dependencies:** FastUtil (bundled)