16 lines
605 B
Java
16 lines
605 B
Java
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;
|
|
}
|
|
}
|
|
}
|