emerald-extension / cn.berberman.emerald.extension

Package cn.berberman.emerald.extension

Types

Axis3D enum class Axis3D
Represents the axis of three dimension.
NBTModifier class NBTModifier
NBT Modifier, let NBTTagModifier’s value add to ItemStack.

Extensions for External Classes

java.lang.Class  
org.bukkit.ChatColor  
org.bukkit.Location  
org.bukkit.World  
org.bukkit.command.CommandSender  
org.bukkit.entity.Player  
org.bukkit.inventory.ItemStack  
org.bukkit.util.Vector  

Properties

logger val logger: Logger
Plugin’s logger.
plugin val plugin: JavaPlugin
Quoted plugin instance.
pluginManager val pluginManager: PluginManager
Plugin manager.

Functions

createInventory fun createInventory(holder: InventoryHolder? = null, lines: Int? = null, type: InventoryType? = null, title: String): Inventory
Creates an empty inventory.
emeraldAsync fun ~~emeraldAsync~~(delay: Long = 0L, block: () -> Unit): BukkitTask
Start an async task. Asynchronous tasks should never access any API in Bukkit. Great careshould be taken to assure the thread-safety of asynchronous tasks.
emeraldAsyncLoop fun ~~emeraldAsyncLoop~~(delay: Long = 0L, block: () -> Boolean): BukkitTask
Start an async loop. Asynchronous tasks should never access any API in Bukkit. Great careshould be taken to assure the thread-safety of asynchronous tasks.
getPluginBean fun <T : JavaPlugin> getPluginBean(): T
Get one plugin’s instance.
info fun info(msg: String): Unit
fun info(supplier: () -> String): Unit
Log a INFO message, which is only to be constructed if the logging level is such that the message will actually be logged.
runOnServerThread fun runOnServerThread(delay: Long = 0L, block: () -> Unit): BukkitTask
Start a task run on main thread. Returns a task that will run on the next server tick.
warning fun warning(msg: String): Unit
Log a WARNING message.fun warning(supplier: () -> String): Unit
Log a WARNING message, which is only to be constructed if the logging level is such that the message will actually be logged.