ModItemStack

Represents a Mod item stack wrapped as a PlatformItemStack.

Since

2.0.0

Parameters

source

the source NMS item stack

Constructors

Link copied to clipboard
@ApiStatus.Internal
constructor(@NotNull source: @NotNull ItemStack)

Functions

Link copied to clipboard
@NotNull
open fun clone(): @NotNull PlatformItemStack
Link copied to clipboard
@NotNull
open fun enchant(enchant: Boolean): @NotNull PlatformItemStack
Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
open fun isAir(): Boolean
Link copied to clipboard
@NotNull
open fun modelData(customModelData: Int, @Nullable namespace: @Nullable PlatformNamespace): @NotNull PlatformItemStack
Link copied to clipboard
@NotNull
open fun of(@NotNull source: @NotNull ItemStack): @NotNull ModItemStack
Creates a ModItemStack from the source.
Link copied to clipboard
abstract fun toString(): String