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