Extension Shared
extensions/shared provides typed config accessors for common block and item patterns. Optional but recommended for explosive blocks and throwables.
Maven
<dependency>
<groupId>dev.rono.extensions</groupId>
<artifactId>shared</artifactId>
<version>1.0.0</version>
<scope>provided</scope>
</dependency>
ExtensionConfigs
| Method | Returns | Use case |
|---|---|---|
ExtensionConfigs.explosion(definition) | ExplosionConfig | Fuse, power, radius, fire |
ExtensionConfigs.throwable(definition) | ThrowableItemConfig | Throw velocity, fuse ticks |
Example
import dev.rono.extensions.shared.config.ExtensionConfigs;
import dev.rono.extensions.shared.config.ExplosionConfig;
ExplosionConfig explosion = ExtensionConfigs.explosion(definition);
int fuse = explosion.fuse();
float power = explosion.resolvedPower();
Raw maps remain available via definition.getCustomConfig() when you need custom keys.
Samples
- extensions/blocks/nuke —
ExplosionConfig - extensions/items/grenade —
ThrowableItemConfig
Related
- Core API — required base dependency
- Extension Cookbook — recipes using these helpers