promotional bannermobile promotional banner

BWR-Core

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

BWR_Core-0.3.0#BETA

File nameBWR_Core-0.3.0BETA.jar
Uploader
Z1pperJZ1pperJ
Uploaded
Feb 6, 2026
Downloads
197
Size
276.4 KB
Mod Loaders
Forge
File ID
7583811
Type
B
Beta
Supported game versions
  • 1.12.2

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:bwr-core-1422315:7583811")

Learn more about Curse Maven

What's new

### 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)
 

This mod has no additional files