ItemModelData

Properties

Link copied to clipboard
val clientsideProvider: ItemProvider
Link copied to clipboard
val clientsideProviders: Map<String, ItemProvider>
Link copied to clipboard
val size: Int
Link copied to clipboard

Functions

Link copied to clipboard
fun createClientsideItemBuilder(name: Component? = null, lore: List<Component>? = null, modelId: Int): ItemBuilder

Creates a new ItemBuilder in client-side format using the given name, lore and modelId.

fun createClientsideItemBuilder(name: Component? = null, lore: List<Component>? = null, modelId: String = "default"): ItemBuilder

Creates a new ItemBuilder in client-side format, using the given name, lore, and modelId.

Link copied to clipboard
fun createClientsideItemStack(modelId: Int): ItemStack
fun createClientsideItemStack(modelId: String = "default"): ItemStack

Creates an ItemProvider for the given modelId in client-side format by running it through PacketItems. This provider is intended for usage in GUIs or similar.

Link copied to clipboard
fun getCustomModelData(modelId: Int): Int?
fun getCustomModelData(modelId: String): Int?

Gets the custom model data for modelId or null if it does not exist.