/* * 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 loaders = new ArrayList(); public static void registerLoader(TestFunctionLoader loader) { loaders.add(loader); } public static void runLoaders(Registry> registry) { for (TestFunctionLoader loader : loaders) { loader.load((key, function) -> Registry.register(registry, key, function)); } } public abstract void load(BiConsumer>, Consumer> var1); }