PlatformItemStack

Represents an item stack in the underlying platform.

This interface provides methods for manipulating item properties like custom model data, enchantment glint, and cloning.

Since

2.0.0

Functions

Link copied to clipboard
@NotNull
abstract fun clone(): @NotNull PlatformItemStack
Creates a copy of this item stack.
Link copied to clipboard
@NotNull
abstract fun enchant(enchant: Boolean): @NotNull PlatformItemStack
Sets the enchantment glint override for the item.
Link copied to clipboard
abstract fun isAir(): Boolean
Checks if the item stack is empty or air.
Link copied to clipboard
@NotNull
abstract fun modelData(customModelData: Int, @Nullable namespace: @Nullable PlatformNamespace): @NotNull PlatformItemStack
Sets the custom model data and item model namespace for the item.