serialize

open override fun serialize(src: ItemStack, typeOfSrc: Type, context: JsonSerializationContext): JsonElement

Serializes ItemStack to JsonElement.

Since

0.2.0

Return

The serialized ItemStack as JsonElement

Parameters

src

The ItemStack

typeOfSrc

The type of src

context

The serialization context