Skip to content

NeoForgeCustomIngredientCodec

Constructors

NeoForgeCustomIngredientCodec

constructor(custom: IACustomIngredientSerializer<A>)

Properties

neoforge

Functions

ap

open fun <E : Any?> ap(decoder: MapDecoder<Function<in ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?, out E?>?>?): MapDecoder<E?>?

codec

comap

open fun <B : Any?> comap(function: Function<in B?, out ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?>?): MapEncoder<B?>?

compressedBuilder

open fun <T : Any?> compressedBuilder(ops: DynamicOps<T?>?): RecordBuilder<T?>?

compressedDecode

open fun <T : Any?> compressedDecode(ops: DynamicOps<T?>?, input: T?): DataResult<ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?>?

compressor

open fun <T : Any?> compressor(ops: DynamicOps<T?>?): KeyCompressor<T?>?

decode

open override fun <T> decode(ops: DynamicOps<T>, input: MapLike<T>): DataResult<ACustomIngredientPlatform.NeoForgeCustomIngredient<A>>

decoder

dependent

deprecated

encode

open override fun <T> encode(
    input: ACustomIngredientPlatform.NeoForgeCustomIngredient<A>, 
    ops: DynamicOps<T>, 
    prefix: RecordBuilder<T>
): RecordBuilder<T>

encoder

fieldOf

flatComap

open fun <B : Any?> flatComap(function: Function<in B?, out DataResult<out ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?>?>?): MapEncoder<B?>?

flatMap

open fun <B : Any?> flatMap(function: Function<in ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?, out DataResult<out B?>?>?): MapDecoder<B?>?

flatXmap

open fun <S : Any?> flatXmap(to: Function<in ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?, out DataResult<out S?>?>?, from: Function<in S?, out DataResult<out ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?>?>?): MapCodec<S?>?

forGetter

keys

open override fun <T> keys(ops: DynamicOps<T>): Stream<T>

map

open fun <B : Any?> map(function: Function<in ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?, out B?>?): MapDecoder<B?>?

mapResult

orElse

orElseGet

setPartial

stable

validate

withLifecycle

open fun withLifecycle(lifecycle: Lifecycle?): MapCodec<ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?>?

xmap