NeoForgeCustomIngredientCodec¶
class NeoForgeCustomIngredientCodec<A : IACustomIngredient>(custom: IACustomIngredientSerializer<A>) : MapCodec<ACustomIngredientPlatform.NeoForgeCustomIngredient<A>>
Constructors¶
NeoForgeCustomIngredientCodec¶
constructor(custom: IACustomIngredientSerializer<A>)
Properties¶
neoforge¶
val MapCodec<out IACondition>.neoforge: AConditionsPlatform.NeoForgeConditionCodec
Functions¶
ap¶
codec¶
open fun codec(): Codec<ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?>?
comap¶
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¶
decoder¶
open fun decoder(): Decoder<ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?>?
dependent¶
open fun <E : Any?> dependent(
initialInstance: MapCodec<E?>?,
splitter: Function<ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?, Pair<E?, MapCodec<E?>?>?>?,
combiner: BiFunction<ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?, E?, ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?>?
): MapCodec<ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?>?
deprecated¶
open fun deprecated(since: Int): MapCodec<ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?>?
encode¶
encoder¶
open fun encoder(): Encoder<ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?>?
fieldOf¶
open fun fieldOf(name: String?): MapCodec<ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?>?
flatComap¶
flatMap¶
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¶
fun <O : Any?> forGetter(getter: Function<O?, ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?>?): RecordCodecBuilder<O?, ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?>?
keys¶
map¶
mapResult¶
open fun mapResult(function: MapCodec.ResultFunction<ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?>?): MapCodec<ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?>?
orElse¶
open fun orElse(value: ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?): MapCodec<ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?>?
open fun orElse(onError: Consumer<String?>?, value: ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?): MapCodec<ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?>?
open fun orElse(onError: UnaryOperator<String?>?, value: ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?): MapCodec<ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?>?
orElseGet¶
open fun orElseGet(value: Supplier<out ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?>?): MapCodec<ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?>?
open fun orElseGet(onError: Consumer<String?>?, value: Supplier<out ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?>?): MapCodec<ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?>?
open fun orElseGet(onError: UnaryOperator<String?>?, value: Supplier<out ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?>?): MapCodec<ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?>?
setPartial¶
open fun setPartial(value: Supplier<ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?>?): MapCodec<ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?>?
stable¶
open fun stable(): MapCodec<ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?>?
validate¶
open fun validate(checker: Function<ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?, DataResult<ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?>?>?): MapCodec<ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?>?
withLifecycle¶
open fun withLifecycle(lifecycle: Lifecycle?): MapCodec<ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?>?
xmap¶
open fun <S : Any?> xmap(to: Function<in ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?, out S?>?, from: Function<in S?, out ACustomIngredientPlatform.NeoForgeCustomIngredient<A>?>?): MapCodec<S?>?