public class EnchantCommand
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
FAILED_EXCEPTION |
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
INCOMPATIBLE_ENCHANTS_EXCEPTION |
private static com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType |
INVALID_LEVEL |
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
ITEMLESS_EXCEPTION |
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
NONLIVING_ENTITY_EXCEPTION |
Constructor and Description |
---|
EnchantCommand() |
Modifier and Type | Method and Description |
---|---|
private static int |
enchant(CommandSource source,
java.util.Collection<? extends Entity> targets,
Enchantment enchantmentIn,
int level) |
static void |
register(com.mojang.brigadier.CommandDispatcher<CommandSource> dispatcher) |
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType NONLIVING_ENTITY_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ITEMLESS_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INCOMPATIBLE_ENCHANTS_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType INVALID_LEVEL
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType FAILED_EXCEPTION
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSource> dispatcher)
private static int enchant(CommandSource source, java.util.Collection<? extends Entity> targets, Enchantment enchantmentIn, int level) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException