package net.minecraft.gametest.framework; import java.util.Collection; import net.minecraft.core.Holder; public record GameTestBatch(int index, Collection gameTestInfos, Holder environment) { public GameTestBatch(int index, Collection gameTestInfos, Holder 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; } } }