Add Top-Level State and more Utils

Signed-off-by: Chaoscaot <max@maxsp.de>
This commit is contained in:
2026-06-10 16:07:37 +02:00
parent a23530074c
commit a6681ffaf6
4 changed files with 16 additions and 15 deletions
@@ -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