Package-level declarations

Types

Link copied to clipboard
class ItemBuilder(material: Material, count: Int = 1, dsl: ItemBuilder.() -> Unit = {})

The ItemBuilder class is used for building ItemStack objects with various properties and customizations. It provides methods for modifying the display name, lore, enchantments, flags, and other attributes of an ItemStack.

Link copied to clipboard
@Serializable
data class MineSkinResponse(val account: Int = 0, val accountId: Int = 0, val data: MineSkinTextureData = MineSkinTextureData(), val duration: Int = 0, val hash: String = "", val id: Int = 0, val idStr: String, val model: String, val name: String, val private: Boolean, val server: String, val timestamp: Int, val uuid: String, val variant: String, val views: Int)
Link copied to clipboard
@Serializable
data class MineSkinTextureData(val texture: Texture = Texture(), val uuid: String = "")
Link copied to clipboard
data class SkinTexture(val name: String, val uuid: UUID, val texture: Texture)
Link copied to clipboard
@Serializable
data class Texture(val signature: String = "", val url: String = "", val urls: Urls = Urls(), val value: String = "")
Link copied to clipboard
@Serializable
data class Urls(val skin: String = "")

Functions

Link copied to clipboard
fun Material.toItemBuilder(dsl: ItemBuilder.() -> Unit = {}): ItemBuilder

Converts a Material to an ItemBuilder and applies the provided DSL.

fun ItemStack.toItemBuilder(dsl: ItemBuilder.() -> Unit = {}): ItemBuilder

Converts an ItemStack to an ItemBuilder.