2025-11-24 22:52:51 +03:00

30 lines
940 B
Java

/*
* Decompiled with CFR 0.152.
*/
package net.minecraft.gametest.framework;
import java.util.ArrayList;
import java.util.List;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import net.minecraft.core.Registry;
import net.minecraft.gametest.framework.GameTestHelper;
import net.minecraft.resources.ResourceKey;
public abstract class TestFunctionLoader {
private static final List<TestFunctionLoader> loaders = new ArrayList<TestFunctionLoader>();
public static void registerLoader(TestFunctionLoader loader) {
loaders.add(loader);
}
public static void runLoaders(Registry<Consumer<GameTestHelper>> registry) {
for (TestFunctionLoader loader : loaders) {
loader.load((key, function) -> Registry.register(registry, key, function));
}
}
public abstract void load(BiConsumer<ResourceKey<Consumer<GameTestHelper>>, Consumer<GameTestHelper>> var1);
}