ItemTypeWrapper

sealed interface ItemTypeWrapper : Keyed(source)

Allows the representation of both vanilla and Rebar items in a unified way.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard

The Rebar variant of ItemTypeWrapper.

Link copied to clipboard
data class Vanilla(val material: Material) : ItemTypeWrapper, Record

The vanilla variant of ItemTypeWrapper.

Properties

Link copied to clipboard
@get:NotNull
abstract val key: @NotNull NamespacedKey

Functions

Link copied to clipboard
abstract fun createItemStack(count: Int): ItemStack
Link copied to clipboard
open fun key(): @NotNull Key