All Downloads are FREE. Search and download functionalities are using the official Maven repository.

walkmc.extensions.Worlds.kt Maven / Gradle / Ivy

There is a newer version: 2.4.0
Show newest version
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