Class ConditionalCodecTest.Primitive
java.lang.Object
net.neoforged.neoforge.oldtest.conditions.ConditionalCodecTest.Primitive
- Enclosing class:
ConditionalCodecTest
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec
<Optional<WithConditions<Integer>>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
static void
Nesting a value without conditions is not allowed (why would anyone do this?).static void
static void
static void
-
Field Details
-
CONDITIONAL_INT
-
CONDITIONS_INT
private static final com.mojang.serialization.Codec<Optional<WithConditions<Integer>>> CONDITIONS_INT
-
-
Constructor Details
-
Primitive
private Primitive()
-
-
Method Details
-
testReadNoConditions
public static void testReadNoConditions() -
testReadNestedNoConditions
public static void testReadNestedNoConditions()Nesting a value without conditions is not allowed (why would anyone do this?). -
testReadMatchingConditions
public static void testReadMatchingConditions() -
testReadFailingConditions
public static void testReadFailingConditions() -
testWriteNoConditions
public static void testWriteNoConditions() -
testWriteWithConditions
public static void testWriteWithConditions()
-