Package net.neoforged.testframework.impl
Class GameTestRegistration.Instance
java.lang.Object
net.minecraft.gametest.framework.GameTestInstance
net.neoforged.testframework.impl.GameTestRegistration.Instance
- Enclosing class:
GameTestRegistration
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<GameTestRegistration.Instance> private final TestFramework
private final String
Fields inherited from class net.minecraft.gametest.framework.GameTestInstance
DIRECT_CODEC
-
Constructor Summary
ConstructorsConstructorDescriptionInstance
(TestData<Holder<TestEnvironmentDefinition>> data, TestFramework framework, String testId) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec
<? extends GameTestInstance> codec()
void
run
(GameTestHelper helper) protected MutableComponent
Methods inherited from class net.minecraft.gametest.framework.GameTestInstance
batch, bootstrap, describe, describeInfo, describeType, descriptionRow, descriptionRow, info, manualOnly, maxAttempts, maxTicks, required, requiredSuccesses, rotation, setupTicks, skyAccess, structure
-
Field Details
-
CODEC
-
framework
-
testId
-
-
Constructor Details
-
Instance
public Instance(TestData<Holder<TestEnvironmentDefinition>> data, TestFramework framework, String testId)
-
-
Method Details
-
run
- Specified by:
run
in classGameTestInstance
-
codec
- Specified by:
codec
in classGameTestInstance
-
typeDescription
- Specified by:
typeDescription
in classGameTestInstance
-