emerald-extension / cn.berberman.emerald.extension
Package cn.berberman.emerald.extension
Types
| Axis3D | enum class Axis3DRepresents the axis of three dimension. |
| NBTModifier | class NBTModifierNBT 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: LoggerPlugin’s logger. |
| plugin | val plugin: JavaPluginQuoted plugin instance. |
| pluginManager | val pluginManager: PluginManagerPlugin manager. |
Functions
| createInventory | fun createInventory(holder: InventoryHolder? = null, lines: Int? = null, type: InventoryType? = null, title: String): InventoryCreates an empty inventory. |
| emeraldAsync | fun ~~emeraldAsync~~(delay: Long = 0L, block: () -> Unit): BukkitTaskStart 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): BukkitTaskStart 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(): TGet one plugin’s instance. |
| info | fun info(msg: String): Unitfun info(supplier: () -> String): UnitLog 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): BukkitTaskStart a task run on main thread. Returns a task that will run on the next server tick. |
| warning | fun warning(msg: String): UnitLog a WARNING message. fun warning(supplier: () -> String): UnitLog a WARNING message, which is only to be constructed if the logging level is such that the message will actually be logged. |