chaos: mega-tnt and chunk exporter fixes

This commit is contained in:
alex committed 2023-01-30 15:01:39 -08:00
1 parent 452ec0d7da
commit cbe647cce9
15 files changed
+95 -21

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
plugins {
id("gay.pizza.foundation.concrete-library")
}
@@ -0,0 +1,12 @@
package gay.pizza.foundation.common
import org.bukkit.Location
import org.bukkit.World
import org.bukkit.entity.Entity
import org.bukkit.entity.Player
import kotlin.reflect.KClass
fun <T: Entity> World.spawn(location: Location, clazz: KClass<T>): T = spawn(location, clazz.java)
fun <T: Entity> Player.spawn(clazz: KClass<T>): T = spawn(clazz.java)
fun <T: Entity> Player.spawn(clazz: Class<T>): T = world.spawn(location, clazz)