NovaItem

interface NovaItem

Functions

Link copied to clipboard
open fun createClientsideItemStack(): ItemStack
Creates a client-side ItemStack of this NovaItem with the amount of 1.
abstract fun createClientsideItemStack(amount: Int): ItemStack
Creates a client-side ItemStack of this NovaItem with the specified amount.
Link copied to clipboard
open fun createItemStack(): ItemStack
Creates an ItemStack of this NovaItem with the amount of 1.
abstract fun createItemStack(amount: Int): ItemStack
Creates an ItemStack of this NovaItem with the specified amount.
Link copied to clipboard
abstract fun getBlock(): NovaBlock
Gets the NovaBlock this item is associated with, or null if there is none.
Link copied to clipboard
abstract fun getId(): NamespacedId
Gets the NamespacedId of this item.
Link copied to clipboard
open fun getLocalizedName(locale: String): String
Gets the localized name for this NovaItem.
Link copied to clipboard
abstract fun getMaxStackSize(): Int
Gets the maximum stack size of this item.
Link copied to clipboard
abstract fun getName(): Component
Gets the name of this NovaItem.
Link copied to clipboard
abstract fun getPlaintextName(locale: String): String
Gets the plaintext name of this NovaItem.