ItemTypeWrapper

sealed interface ItemTypeWrapper : Keyed(source)

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

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard

The Pylon variant of ItemTypeWrapper.

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

The vanilla variant of ItemTypeWrapper.

Functions

Link copied to clipboard
abstract fun createItemStack(): ItemStack
Link copied to clipboard
@NotNull
abstract fun getKey(): @NotNull NamespacedKey
Link copied to clipboard
open override fun key(): @NotNull Key