Skip to content

Commit

Permalink
feat(api): command actions
Browse files Browse the repository at this point in the history
  • Loading branch information
WakelessSloth56 committed Aug 25, 2022
1 parent 3e5aca2 commit c7241a3
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
@@ -0,0 +1,16 @@
package org.auioc.mcmod.arnicalib.api.game.command;

import org.apache.commons.lang3.function.FailableBiConsumer;
import org.apache.commons.lang3.function.FailableToIntBiFunction;
import com.mojang.brigadier.exceptions.CommandSyntaxException;

public class BiCommandAction {


public static interface SingleSuccess<T, U> extends FailableBiConsumer<T, U, CommandSyntaxException> {
}

public static interface MultiSuccess<T, U> extends FailableToIntBiFunction<T, U, CommandSyntaxException> {
}

}
@@ -0,0 +1,16 @@
package org.auioc.mcmod.arnicalib.api.game.command;

import org.apache.commons.lang3.function.FailableConsumer;
import org.apache.commons.lang3.function.FailableToIntFunction;
import com.mojang.brigadier.exceptions.CommandSyntaxException;

public class CommandAction {


public static interface SingleSuccess<T> extends FailableConsumer<T, CommandSyntaxException> {
}

public static interface MultiSuccess<T> extends FailableToIntFunction<T, CommandSyntaxException> {
}

}

0 comments on commit c7241a3

Please sign in to comment.