Uses of Class
net.minecraft.gametest.framework.GameTestHelper
Package
Description
-
Uses of GameTestHelper in net.minecraft.gametest.framework
Modifier and TypeFieldDescriptionprivate final Consumer
<GameTestHelper> TestFunction.function
The field for thefunction
record component.Modifier and TypeMethodDescriptionTestFunction.function()
Returns the value of thefunction
record component.ModifierConstructorDescriptionTestFunction
(String p_177801_, String p_177802_, String p_177803_, int p_177804_, long p_177805_, boolean p_177806_, Consumer<GameTestHelper> p_177807_) TestFunction
(String batchName, String testName, String structureName, Rotation rotation, int maxTicks, long setupTicks, boolean required, boolean manualOnly, int maxAttempts, int requiredSuccesses, boolean skyAccess, Consumer<GameTestHelper> function) Creates an instance of aTestFunction
record class.TestFunction
(String p_177820_, String p_177821_, String p_177822_, Rotation p_177823_, int p_177824_, long p_177825_, boolean p_177826_, Consumer<GameTestHelper> p_177827_) -
Uses of GameTestHelper in net.neoforged.neoforge.debug
-
Uses of GameTestHelper in net.neoforged.neoforge.debug.crafting
Modifier and TypeMethodDescription(package private) static void
IngredientTests.customIngredientNotEmpty
(GameTestHelper helper) -
Uses of GameTestHelper in net.neoforged.neoforge.debug.fluid.crafting
Modifier and TypeMethodDescription(package private) static void
FluidIngredientTests.customFluidIngredientsHasNoFluids
(GameTestHelper helper) (package private) static void
FluidIngredientTests.fluidIngredientDataPartialMatchWorks
(GameTestHelper helper) (package private) static void
FluidIngredientTests.fluidIngredientDataStrictMatchWorks
(GameTestHelper helper) (package private) static void
FluidIngredientTests.singleFluidIngredientIgnoresSizeAndData
(GameTestHelper helper) (package private) static void
FluidIngredientTests.sizedFluidIngredientMatching
(GameTestHelper helper) (package private) static void
FluidIngredientTests.sizedFluidIngredientSerialization
(GameTestHelper helper) (package private) static void
FluidIngredientTests.testFluidIngredientEmptiness
(GameTestHelper helper) -
Uses of GameTestHelper in net.neoforged.neoforge.oldtest.misc
Modifier and TypeMethodDescriptionstatic void
GameTestTest.testEnergyStorage
(GameTestHelper helper) static void
GameTestTest.testHopperPickup
(GameTestHelper helper) static void
GameTestTest.testWood
(GameTestHelper helper) An example game test -
Uses of GameTestHelper in net.neoforged.testframework
Modifier and TypeMethodDescription<T extends GameTestHelper>
voidDynamicTest.onGameTest
(Class<T> helperType, Consumer<T> consumer) Registers a listener to run when the GameTest version of this test is run. -
Uses of GameTestHelper in net.neoforged.testframework.gametest
Modifier and TypeFieldDescriptionprivate final Consumer
<GameTestHelper> GameTestData.function
The field for thefunction
record component.Modifier and TypeMethodDescriptionGameTestData.function()
Returns the value of thefunction
record component.ModifierConstructorDescriptionGameTestPlayer
(MinecraftServer server, ServerLevel level, com.mojang.authlib.GameProfile profile, ClientInformation information, GameTestHelper helper) ModifierConstructorDescriptionGameTestData
(@Nullable String batchName, String structureName, boolean required, int maxAttempts, int requiredSuccesses, Consumer<GameTestHelper> function, int maxTicks, long setupTicks, Rotation rotation, boolean skyAccess) Creates an instance of aGameTestData
record class. -
Uses of GameTestHelper in net.neoforged.testframework.impl
Modifier and TypeMethodDescriptionstatic void
ReflectionUtils.addListener
(GameTestHelper helper, GameTestListener listener) -
Uses of GameTestHelper in net.neoforged.testframework.impl.test
Modifier and TypeFieldDescriptionprivate final Class
<? extends GameTestHelper> MethodBasedGameTestTest.helperType
private final List
<Consumer<GameTestHelper>> AbstractTest.Dynamic.onGameTest
Modifier and TypeMethodDescription<T extends GameTestHelper>
voidAbstractTest.Dynamic.onGameTest
(Class<T> helperType, Consumer<T> consumer) private <T extends GameTestHelper>
voidAbstractTest.Dynamic.onGameTest
(GameTestHelperFactory<T> factory, Consumer<T> consumer) Modifier and TypeMethodDescriptionprotected void
AbstractTest.Dynamic.onGameTest
(GameTestHelper helper) protected void
AbstractTest.onGameTest
(GameTestHelper helper) ModifierConstructorDescriptionMethodBasedGameTestTest
(Method method, Class<? extends GameTestHelper> helperType)