Class ConditionalOps.ConditionalEncoder<A>
java.lang.Object
net.neoforged.neoforge.common.conditions.ConditionalOps.ConditionalEncoder<A>
- All Implemented Interfaces:
com.mojang.serialization.Encoder<Optional<WithConditions<A>>>
- Enclosing class:
ConditionalOps<T>
private static final class ConditionalOps.ConditionalEncoder<A>
extends Object
implements com.mojang.serialization.Encoder<Optional<WithConditions<A>>>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final String
final com.mojang.serialization.Codec
<List<ICondition>> private final com.mojang.serialization.Encoder
<A> -
Constructor Summary
ModifierConstructorDescriptionprivate
ConditionalEncoder
(String conditionalsPropertyKey, com.mojang.serialization.Codec<List<ICondition>> conditionsCodec, com.mojang.serialization.Encoder<A> innerCodec) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.mojang.serialization.Encoder
comap, encodeStart, fieldOf, flatComap, withLifecycle
-
Field Details
-
conditionalsPropertyKey
-
conditionsCodec
-
innerCodec
-
-
Constructor Details
-
ConditionalEncoder
private ConditionalEncoder(String conditionalsPropertyKey, com.mojang.serialization.Codec<List<ICondition>> conditionsCodec, com.mojang.serialization.Encoder<A> innerCodec)
-
-
Method Details