Utilities
Represented by util
.
util.getTableFromList(list: java.util.Collection | java.util.stream.Stream)
: tableConvert from a stream or collection in Java to a table in Lua.
util.getTableFromArray(array: array)
: tableConvert from a array in Java to a table in Lua.
util.getTableFromMap(map: java.util.Map)
: tableConvert from a map in Java to a table in Lua.
util.getTableLength(table: table)
: intReturns the amount of keys available in a table.
util.runAsync(func: function, delay: int)
Run an asynchronous function after a certain time in milliseconds.
util.runDelayed(func: function, delay: int)
Run a synchronous function after a certain time in milliseconds.
util.getClass(class: string)
: java.lang.ClassGrab a class from Java using the package and name. (ie
java.io.File
)util.getSkullMeta(item: org.bukkit.inventory.ItemStack)
: SkullWrapperReturns the SkullMeta from an ItemStack.
util.getBannerMeta(item: org.bukkit.inventory.ItemStack)
: BannerWrapperReturns the BennerMeta from an ItemStack.
util.parseItemStack(item: org.bukkit.inventory.ItemStack)
: ItemStackWrapperConvert the userdata from an ItemStack into a table.
Last updated