public class EnchantCommand extends Object
Modifier and Type | Field and Description |
---|---|
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
FAILED_ENTITY_EXCEPTION |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
FAILED_EXCEPTION |
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
FAILED_INCOMPATIBLE_EXCEPTION |
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
FAILED_ITEMLESS_EXCEPTION |
private static com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType |
FAILED_LEVEL_EXCEPTION |
Constructor and Description |
---|
EnchantCommand() |
Modifier and Type | Method and Description |
---|---|
private static int |
execute(ServerCommandSource source,
Collection<? extends Entity> targets,
Enchantment enchantment,
int level) |
static void |
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) |
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType FAILED_ENTITY_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType FAILED_ITEMLESS_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType FAILED_INCOMPATIBLE_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType FAILED_LEVEL_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType FAILED_EXCEPTION
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
private static int execute(ServerCommandSource source, Collection<? extends Entity> targets, Enchantment enchantment, int level)