Class FluidUtilTest

java.lang.Object
net.minecraftforge.debug.FluidUtilTest

public class FluidUtilTest extends Object
Various tests for FluidUtil, that run when the mod is loaded. If one of the tests fails, an expection will be thrown, and mod loading will fail with an error. If all tests pass, the mod will load successfully.
  • Field Details

  • Constructor Details

    • FluidUtilTest

      public FluidUtilTest()
  • Method Details

    • runTests

      private static void runTests(FMLCommonSetupEvent commonSetupEvent)
    • test_tryEmptyContainer

      private static void test_tryEmptyContainer()
      Ensures that tryEmptyContainer doesn't change the target fluid handler when simulating. Regression test for the root cause of issue #6796.
    • test_tryFillContainer

      private static void test_tryFillContainer()
      Ensures that tryFillContainer doesn't change the target fluid handler when simulating. Ant that the result of the simulated transfver is valid. Regression test for the root cause of issue #6796.
    • test_tryEmptyContainerAndStow_stackable

      private static void test_tryEmptyContainerAndStow_stackable()
      Ensures that tryEmptyContainerAndStow doesn't duplicate fluids in the target when the container is stackable. Regression test for issue #6796.
    • checkItemStack

      private static void checkItemStack(ItemStack stack, Item item, int count)
    • checkFluidStack

      private static void checkFluidStack(FluidStack stack, Fluid fluid, int amount)