aboutsummaryrefslogtreecommitdiff
path: root/src/compat/explosiveEnhancement/java/ExplosiveEnhancementSpawner.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-10-26 17:26:37 +0200
committerLinnea Gräf <nea@nea.moe>2024-10-26 17:26:42 +0200
commit4308a09f8929da42cab420d7254c0981d74bd651 (patch)
tree28b1c7fa2a284839280190657d904bcb3466ba45 /src/compat/explosiveEnhancement/java/ExplosiveEnhancementSpawner.kt
parent52baaf65bf9731988ad3a2487d2dfa43b1bdb63e (diff)
downloadfirmament-4308a09f8929da42cab420d7254c0981d74bd651.tar.gz
firmament-4308a09f8929da42cab420d7254c0981d74bd651.tar.bz2
firmament-4308a09f8929da42cab420d7254c0981d74bd651.zip
Move explosive enhancment into isolation
[no changelog]
Diffstat (limited to 'src/compat/explosiveEnhancement/java/ExplosiveEnhancementSpawner.kt')
-rw-r--r--src/compat/explosiveEnhancement/java/ExplosiveEnhancementSpawner.kt17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/compat/explosiveEnhancement/java/ExplosiveEnhancementSpawner.kt b/src/compat/explosiveEnhancement/java/ExplosiveEnhancementSpawner.kt
new file mode 100644
index 0000000..caf16a5
--- /dev/null
+++ b/src/compat/explosiveEnhancement/java/ExplosiveEnhancementSpawner.kt
@@ -0,0 +1,17 @@
+package moe.nea.firmament.compat.explosiveenhancement
+
+import com.google.auto.service.AutoService
+import net.superkat.explosiveenhancement.api.ExplosiveApi
+import net.minecraft.util.math.Vec3d
+import moe.nea.firmament.features.fixes.CompatibliltyFeatures
+import moe.nea.firmament.features.fixes.CompatibliltyFeatures.TConfig
+import moe.nea.firmament.util.MC
+import moe.nea.firmament.util.compatloader.CompatLoader
+
+@AutoService(CompatibliltyFeatures.ExplosiveApiWrapper::class)
+@CompatLoader.RequireMod("explosiveenhancement")
+class ExplosiveEnhancementSpawner : CompatibliltyFeatures.ExplosiveApiWrapper {
+ override fun spawnParticle(vec3d: Vec3d, power: Float) {
+ ExplosiveApi.spawnParticles(MC.world, vec3d.x, vec3d.y, vec3d.z, TConfig.explosionSize / 10F)
+ }
+}