Package net.minecraft.test
Class TestFunctions
java.lang.Object
net.minecraft.test.TestFunctions
- Mappings:
Namespace Name named net/minecraft/test/TestFunctionsintermediary net/minecraft/class_4519official sz
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map<String, Consumer<ServerWorld>> private static final Map<String, Consumer<ServerWorld>> private static final Set<TestFunction> private static final Collection<TestFunction> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddFailedTestFunction(TestFunction testFunction) static voidstatic Consumer<ServerWorld> getAfterBatchConsumer(String batchId) static Consumer<ServerWorld> getBeforeBatchConsumer(String batchId) private static Collection<TestFunction> getCustomTestFunctions(Method method) static Stream<TestFunction> private static Consumer<?> getInvoker(Method method) static Collection<String> private static TestFunctiongetTestFunction(Method method) static Optional<TestFunction> getTestFunction(String structurePath) static TestFunctiongetTestFunctionOrThrow(String structurePath) static Collection<TestFunction> static Stream<TestFunction> getTestFunctions(String testClass) private static booleanisInClass(TestFunction testFunction, String testClass) static voidstatic voidprivate static <T extends Annotation>
voidregisterBatchConsumers(Method method, Class<T> clazz, Function<T, String> batchIdFunction, Map<String, Consumer<ServerWorld>> batchConsumerMap) static booleantestClassExists(String testClass)
-
Field Details
-
TEST_FUNCTIONS
- Mappings:
Namespace Name Mixin selector named TEST_FUNCTIONSLnet/minecraft/test/TestFunctions;TEST_FUNCTIONS:Ljava/util/Collection;intermediary field_20570Lnet/minecraft/class_4519;field_20570:Ljava/util/Collection;official aLsz;a:Ljava/util/Collection;
-
TEST_CLASSES
- Mappings:
Namespace Name Mixin selector named TEST_CLASSESLnet/minecraft/test/TestFunctions;TEST_CLASSES:Ljava/util/Set;intermediary field_20571Lnet/minecraft/class_4519;field_20571:Ljava/util/Set;official bLsz;b:Ljava/util/Set;
-
BEFORE_BATCH_CONSUMERS
- Mappings:
Namespace Name Mixin selector named BEFORE_BATCH_CONSUMERSLnet/minecraft/test/TestFunctions;BEFORE_BATCH_CONSUMERS:Ljava/util/Map;intermediary field_20572Lnet/minecraft/class_4519;field_20572:Ljava/util/Map;official cLsz;c:Ljava/util/Map;
-
AFTER_BATCH_CONSUMERS
- Mappings:
Namespace Name Mixin selector named AFTER_BATCH_CONSUMERSLnet/minecraft/test/TestFunctions;AFTER_BATCH_CONSUMERS:Ljava/util/Map;intermediary field_27806Lnet/minecraft/class_4519;field_27806:Ljava/util/Map;official dLsz;d:Ljava/util/Map;
-
FAILED_TEST_FUNCTIONS
- Mappings:
Namespace Name Mixin selector named FAILED_TEST_FUNCTIONSLnet/minecraft/test/TestFunctions;FAILED_TEST_FUNCTIONS:Ljava/util/Set;intermediary field_25302Lnet/minecraft/class_4519;field_25302:Ljava/util/Set;official eLsz;e:Ljava/util/Set;
-
-
Constructor Details
-
TestFunctions
public TestFunctions()
-
-
Method Details
-
register
- Mappings:
Namespace Name Mixin selector named registerLnet/minecraft/test/TestFunctions;register(Ljava/lang/Class;)Vintermediary method_36068Lnet/minecraft/class_4519;method_36068(Ljava/lang/Class;)Vofficial aLsz;a(Ljava/lang/Class;)V
-
register
- Mappings:
Namespace Name Mixin selector named registerLnet/minecraft/test/TestFunctions;register(Ljava/lang/reflect/Method;)Vintermediary method_36069Lnet/minecraft/class_4519;method_36069(Ljava/lang/reflect/Method;)Vofficial aLsz;a(Ljava/lang/reflect/Method;)V
-
registerBatchConsumers
private static <T extends Annotation> void registerBatchConsumers(Method method, Class<T> clazz, Function<T, String> batchIdFunction, Map<String, Consumer<ServerWorld>> batchConsumerMap) - Mappings:
Namespace Name Mixin selector named registerBatchConsumersLnet/minecraft/test/TestFunctions;registerBatchConsumers(Ljava/lang/reflect/Method;Ljava/lang/Class;Ljava/util/function/Function;Ljava/util/Map;)Vintermediary method_36070Lnet/minecraft/class_4519;method_36070(Ljava/lang/reflect/Method;Ljava/lang/Class;Ljava/util/function/Function;Ljava/util/Map;)Vofficial aLsz;a(Ljava/lang/reflect/Method;Ljava/lang/Class;Ljava/util/function/Function;Ljava/util/Map;)V
-
getTestFunctions
- Mappings:
Namespace Name Mixin selector named getTestFunctionsLnet/minecraft/test/TestFunctions;getTestFunctions(Ljava/lang/String;)Ljava/util/stream/Stream;intermediary method_22193Lnet/minecraft/class_4519;method_22193(Ljava/lang/String;)Ljava/util/stream/Stream;official aLsz;a(Ljava/lang/String;)Ljava/util/stream/Stream;
-
getTestFunctions
- Mappings:
Namespace Name Mixin selector named getTestFunctionsLnet/minecraft/test/TestFunctions;getTestFunctions()Ljava/util/Collection;intermediary method_22191Lnet/minecraft/class_4519;method_22191()Ljava/util/Collection;official aLsz;a()Ljava/util/Collection;
-
getTestClasses
- Mappings:
Namespace Name Mixin selector named getTestClassesLnet/minecraft/test/TestFunctions;getTestClasses()Ljava/util/Collection;intermediary method_22195Lnet/minecraft/class_4519;method_22195()Ljava/util/Collection;official bLsz;b()Ljava/util/Collection;
-
testClassExists
- Mappings:
Namespace Name Mixin selector named testClassExistsLnet/minecraft/test/TestFunctions;testClassExists(Ljava/lang/String;)Zintermediary method_22196Lnet/minecraft/class_4519;method_22196(Ljava/lang/String;)Zofficial bLsz;b(Ljava/lang/String;)Z
-
getBeforeBatchConsumer
- Mappings:
Namespace Name Mixin selector named getBeforeBatchConsumerLnet/minecraft/test/TestFunctions;getBeforeBatchConsumer(Ljava/lang/String;)Ljava/util/function/Consumer;intermediary method_22198Lnet/minecraft/class_4519;method_22198(Ljava/lang/String;)Ljava/util/function/Consumer;official cLsz;c(Ljava/lang/String;)Ljava/util/function/Consumer;
-
getAfterBatchConsumer
- Mappings:
Namespace Name Mixin selector named getAfterBatchConsumerLnet/minecraft/test/TestFunctions;getAfterBatchConsumer(Ljava/lang/String;)Ljava/util/function/Consumer;intermediary method_32244Lnet/minecraft/class_4519;method_32244(Ljava/lang/String;)Ljava/util/function/Consumer;official dLsz;d(Ljava/lang/String;)Ljava/util/function/Consumer;
-
getTestFunction
- Mappings:
Namespace Name Mixin selector named getTestFunctionLnet/minecraft/test/TestFunctions;getTestFunction(Ljava/lang/String;)Ljava/util/Optional;intermediary method_22199Lnet/minecraft/class_4519;method_22199(Ljava/lang/String;)Ljava/util/Optional;official eLsz;e(Ljava/lang/String;)Ljava/util/Optional;
-
getTestFunctionOrThrow
- Mappings:
Namespace Name Mixin selector named getTestFunctionOrThrowLnet/minecraft/test/TestFunctions;getTestFunctionOrThrow(Ljava/lang/String;)Lnet/minecraft/test/TestFunction;intermediary method_22200Lnet/minecraft/class_4519;method_22200(Ljava/lang/String;)Lnet/minecraft/class_4529;official fLsz;f(Ljava/lang/String;)Ltr;
-
getCustomTestFunctions
- Mappings:
Namespace Name Mixin selector named getCustomTestFunctionsLnet/minecraft/test/TestFunctions;getCustomTestFunctions(Ljava/lang/reflect/Method;)Ljava/util/Collection;intermediary method_36072Lnet/minecraft/class_4519;method_36072(Ljava/lang/reflect/Method;)Ljava/util/Collection;official bLsz;b(Ljava/lang/reflect/Method;)Ljava/util/Collection;
-
getTestFunction
- Mappings:
Namespace Name Mixin selector named getTestFunctionLnet/minecraft/test/TestFunctions;getTestFunction(Ljava/lang/reflect/Method;)Lnet/minecraft/test/TestFunction;intermediary method_36073Lnet/minecraft/class_4519;method_36073(Ljava/lang/reflect/Method;)Lnet/minecraft/class_4529;official cLsz;c(Ljava/lang/reflect/Method;)Ltr;
-
getInvoker
- Mappings:
Namespace Name Mixin selector named getInvokerLnet/minecraft/test/TestFunctions;getInvoker(Ljava/lang/reflect/Method;)Ljava/util/function/Consumer;intermediary method_36074Lnet/minecraft/class_4519;method_36074(Ljava/lang/reflect/Method;)Ljava/util/function/Consumer;official dLsz;d(Ljava/lang/reflect/Method;)Ljava/util/function/Consumer;
-
isInClass
- Mappings:
Namespace Name Mixin selector named isInClassLnet/minecraft/test/TestFunctions;isInClass(Lnet/minecraft/test/TestFunction;Ljava/lang/String;)Zintermediary method_22192Lnet/minecraft/class_4519;method_22192(Lnet/minecraft/class_4529;Ljava/lang/String;)Zofficial aLsz;a(Ltr;Ljava/lang/String;)Z
-
getFailedTestFunctions
- Mappings:
Namespace Name Mixin selector named getFailedTestFunctionsLnet/minecraft/test/TestFunctions;getFailedTestFunctions()Ljava/util/stream/Stream;intermediary method_29405Lnet/minecraft/class_4519;method_29405()Ljava/util/stream/Stream;official cLsz;c()Ljava/util/stream/Stream;
-
addFailedTestFunction
- Mappings:
Namespace Name Mixin selector named addFailedTestFunctionLnet/minecraft/test/TestFunctions;addFailedTestFunction(Lnet/minecraft/test/TestFunction;)Vintermediary method_29404Lnet/minecraft/class_4519;method_29404(Lnet/minecraft/class_4529;)Vofficial aLsz;a(Ltr;)V
-
clearFailedTestFunctions
public static void clearFailedTestFunctions()- Mappings:
Namespace Name Mixin selector named clearFailedTestFunctionsLnet/minecraft/test/TestFunctions;clearFailedTestFunctions()Vintermediary method_29406Lnet/minecraft/class_4519;method_29406()Vofficial dLsz;d()V
-