mirror of
https://github.com/GayPizzaSpecifications/foundation.git
synced 2026-11-04 11:12:20 +00:00
chaos: mega-tnt and chunk exporter fixes
This commit is contained in:
15 files changed
+95
-21
No files matched your search
@@ -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)
|
||||
Reference in new issue
Block a user