Code/net/minecraft/gametest/framework/GameTestBatch.java

16 lines
664 B
Java
Raw Normal View History

2025-07-01 06:20:03 +00:00
package net.minecraft.gametest.framework;
import java.util.Collection;
import net.minecraft.core.Holder;
public record GameTestBatch(int index, Collection<GameTestInfo> gameTestInfos, Holder<TestEnvironmentDefinition> environment) {
public GameTestBatch(int index, Collection<GameTestInfo> gameTestInfos, Holder<TestEnvironmentDefinition> environment) {
if (gameTestInfos.isEmpty()) {
throw new IllegalArgumentException("A GameTestBatch must include at least one GameTestInfo!");
} else {
this.index = index;
this.gameTestInfos = gameTestInfos;
this.environment = environment;
}
}
}