Package dev.jorel.commandapi
Class CommandAPIVersionHandler
java.lang.Object
dev.jorel.commandapi.CommandAPIVersionHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidusePlatformImplementation(Function<InternalPaperConfig, CommandAPIPlatform<?, ?, ?>> platform) Configures the test kit to use the givenCommandAPIPlatformwhen the CommandAPI is loaded.
-
Constructor Details
-
CommandAPIVersionHandler
public CommandAPIVersionHandler()
-
-
Method Details
-
usePlatformImplementation
public static void usePlatformImplementation(Function<InternalPaperConfig, CommandAPIPlatform<?, ?, ?>> platform) Configures the test kit to use the givenCommandAPIPlatformwhen the CommandAPI is loaded.- Parameters:
platform- AFunctionthat uses aInternalPaperConfigto create theCommandAPIPlatformto use for the next test. This will likely be a custom implementation ofMockCommandAPIPaperthat overrides a method you need to run tests that doesn't have a proper implementation inMockCommandAPIPaper.
-