/* * Decompiled with CFR 0.152. */ package net.minecraft.gametest.framework; import java.util.function.BiConsumer; import java.util.function.Consumer; import net.minecraft.core.Registry; import net.minecraft.core.registries.Registries; import net.minecraft.gametest.framework.GameTestHelper; import net.minecraft.gametest.framework.TestFunctionLoader; import net.minecraft.resources.Identifier; import net.minecraft.resources.ResourceKey; public class BuiltinTestFunctions extends TestFunctionLoader { public static final ResourceKey> ALWAYS_PASS = BuiltinTestFunctions.create("always_pass"); public static final Consumer ALWAYS_PASS_INSTANCE = GameTestHelper::succeed; private static ResourceKey> create(String name) { return ResourceKey.create(Registries.TEST_FUNCTION, Identifier.withDefaultNamespace(name)); } public static Consumer bootstrap(Registry> registry) { BuiltinTestFunctions.registerLoader(new BuiltinTestFunctions()); BuiltinTestFunctions.runLoaders(registry); return ALWAYS_PASS_INSTANCE; } @Override public void load(BiConsumer>, Consumer> register) { register.accept(ALWAYS_PASS, ALWAYS_PASS_INSTANCE); } }