
walkmc.extensions.Worlds.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of walk-server Show documentation
Show all versions of walk-server Show documentation
A spigot fork to kotlin structure and news.
package walkmc.extensions
import org.bukkit.*
import org.bukkit.craftbukkit.*
import walkmc.*
import walkmc.block.*
import java.util.*
/**
* Gets the craft world handler of this world.
*/
inline val World.craftHandler: CraftWorld get() = this as CraftWorld
/**
* Gets the minecraft world handler of this world.
*/
inline val World.handler: MinecraftWorld get() = craftHandler.handle
/**
* Shortcut for getting the world id.
*/
inline val World.id: UUID get() = uid
/**
* Gets all custom blocks filtered by the instance of [T].
*/
inline fun World.getCustomBlocksBy(): MutableList = getCustomBlocks(T::class.java)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy