Class IngredientInvalidationTest

java.lang.Object
net.minecraftforge.debug.world.item.IngredientInvalidationTest

public class IngredientInvalidationTest extends Object
This class validates that Ingredient.invalidate() is called correctly.
To verify, join a world, then leave it. Then join a world again in the same game session. If invalidation is not working, the 2nd world join will trigger an exception.
  • Field Details

    • MOD_ID

      public static final String MOD_ID
      See Also:
    • ENABLED

      private static final boolean ENABLED
      See Also:
    • invalidateExpected

      private static boolean invalidateExpected
    • gotInvalidate

      private static boolean gotInvalidate
    • TEST_INGREDIENT

      private static final Ingredient TEST_INGREDIENT
  • Constructor Details

    • IngredientInvalidationTest

      public IngredientInvalidationTest()
  • Method Details