aboutsummaryrefslogtreecommitdiff
path: root/src/compat/explosiveEnhancement/java/ExplosiveEnhancementSpawner.kt
blob: caf16a55b1681c88c1af584e1ab7917b98f27c3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)
	}
}