/* * Decompiled with CFR 0.152. */ package net.minecraft.gametest.framework; import java.util.Map; import java.util.function.Consumer; import net.minecraft.core.registries.Registries; import net.minecraft.gametest.framework.GameTestHelper; import net.minecraft.gametest.framework.TestData; import net.minecraft.gametest.framework.TestEnvironmentDefinition; import net.minecraft.resources.Identifier; import net.minecraft.resources.ResourceKey; public record GeneratedTest(Map>> tests, ResourceKey> functionKey, Consumer function) { public GeneratedTest(Map>> tests, Identifier functionId, Consumer function) { this(tests, ResourceKey.create(Registries.TEST_FUNCTION, functionId), function); } public GeneratedTest(Identifier id, TestData> testData, Consumer function) { this(Map.of(id, testData), id, function); } }