forked from SteamWar/SteamWar
Add Top-Level State and more Utils
Signed-off-by: Chaoscaot <max@maxsp.de>
This commit is contained in:
@@ -32,7 +32,7 @@ fun ItemStack.count(count: Int) = apply { amount = count }
|
||||
|
||||
fun ItemStack.name(name: Component) = apply { itemMeta = itemMeta.also { it.displayName(name) } }
|
||||
|
||||
fun ItemStack.lore(lore: List<Component>) = apply { itemMeta = itemMeta.also { it.lore(lore) } }
|
||||
fun ItemStack.lored(lore: List<Component>) = apply { itemMeta = itemMeta.also { it.lore(lore) } }
|
||||
|
||||
fun String.asMaterial(): Material = Material.matchMaterial(this) ?: Material.BARRIER
|
||||
|
||||
|
||||
Reference in New Issue
Block a user