GameTestBatch .java

net.minecraft.gametest.framework.GameTestBatch (record, 15 lines): members: index, gameTestInfos, environment, dimension. imports: ResourceKey.

net.minecraft.gametest.frameworkrecord15 linescommon516 B

API Surface (1)

record GameTestBatch(int index, Collection<GameTestInfo> gameTestInfos, Holder<TestEnvironmentDefinition<?>> environment, ResourceKey<Level> dimension)

Code Graph: Dependencies (5)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

GameTestBatch.java15 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.gametest.framework;
2
3
import java.util.Collection;
4
import net.minecraft.core.Holder;
5
import net.minecraft.resources.ResourceKey;
6
import net.minecraft.world.level.Level;
7
8
public record GameTestBatch(int index, Collection<GameTestInfo> gameTestInfos, Holder<TestEnvironmentDefinition<?>> environment, ResourceKey<Level> dimension) {
9
	public GameTestBatch {
10
		if (gameTestInfos.isEmpty()) {
11
			throw new IllegalArgumentException("A GameTestBatch must include at least one GameTestInfo!");
12
		}
13
	}
14
}
15

Decompiled Minecraft 26.3 source of GameTestBatch (net/minecraft/gametest/framework/GameTestBatch.java) with Mojang official mappings, stored verbatim on the site.