public class RecipeCommand
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
GIVE_FAILED_EXCEPTION |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
TAKE_FAILED_EXCEPTION |
| Constructor and Description |
|---|
RecipeCommand() |
| Modifier and Type | Method and Description |
|---|---|
private static int |
giveRecipes(CommandSource source,
java.util.Collection<ServerPlayerEntity> targets,
java.util.Collection<IRecipe<?>> recipes) |
static void |
register(com.mojang.brigadier.CommandDispatcher<CommandSource> dispatcher) |
private static int |
takeRecipes(CommandSource source,
java.util.Collection<ServerPlayerEntity> targets,
java.util.Collection<IRecipe<?>> recipes) |
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType GIVE_FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType TAKE_FAILED_EXCEPTION
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSource> dispatcher)
private static int giveRecipes(CommandSource source, java.util.Collection<ServerPlayerEntity> targets, java.util.Collection<IRecipe<?>> recipes) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxExceptionprivate static int takeRecipes(CommandSource source, java.util.Collection<ServerPlayerEntity> targets, java.util.Collection<IRecipe<?>> recipes) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException