Class ConditionalCodecTest.Primitive

java.lang.Object
net.neoforged.neoforge.oldtest.conditions.ConditionalCodecTest.Primitive
Enclosing class:
ConditionalCodecTest

private static class ConditionalCodecTest.Primitive extends Object
  • Field Details

    • CONDITIONAL_INT

      private static final com.mojang.serialization.Codec<Optional<Integer>> 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()