NovaItem

interface NovaItem

Functions

Link copied to clipboard
@NotNull
open fun createClientsideItemStack(): @NotNull ItemStack
Creates a client-side ItemStack of this NovaItem with the amount of 1.
@NotNull
abstract fun createClientsideItemStack(amount: Int): @NotNull ItemStack
Creates a client-side ItemStack of this NovaItem with the specified amount.
Link copied to clipboard
@NotNull
open fun createItemStack(): @NotNull ItemStack
Creates an ItemStack of this NovaItem with the amount of 1.
@NotNull
abstract fun createItemStack(amount: Int): @NotNull ItemStack
Creates an ItemStack of this NovaItem with the specified amount.
Link copied to clipboard
@Nullable
abstract fun getBlock(): @Nullable NovaBlock
Gets the NovaBlock this item is associated with, or null if there is none.
Link copied to clipboard
@NotNull
abstract fun getId(): @NotNull NamespacedId
Gets the NamespacedId of this item.
Link copied to clipboard
@NotNull
open fun getLocalizedName(locale: String): @NotNull 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
@NotNull
abstract fun getName(): @NotNull Component
Gets the name of this NovaItem.
Link copied to clipboard
@NotNull
abstract fun getPlaintextName(@NotNull locale: @NotNull String): @NotNull String
Gets the plaintext name of this NovaItem.