Package net.minecraft.server.commands
Class EnchantCommand
java.lang.Object
net.minecraft.server.commands.EnchantCommand
-
Field Summary
Modifier and TypeFieldDescriptionprivate static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static int
enchant(CommandSourceStack p_137015_, Collection<? extends Entity> p_137016_, Enchantment p_137017_, int p_137018_)
static void
register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_137009_)
-
Field Details
-
ERROR_NOT_LIVING_ENTITY
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_NOT_LIVING_ENTITY -
ERROR_NO_ITEM
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_NO_ITEM -
ERROR_INCOMPATIBLE
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_INCOMPATIBLE -
ERROR_LEVEL_TOO_HIGH
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_LEVEL_TOO_HIGH -
ERROR_NOTHING_HAPPENED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NOTHING_HAPPENED
-
-
Constructor Details
-
EnchantCommand
public EnchantCommand()
-
-
Method Details
-
register
-
enchant
private static int enchant(CommandSourceStack p_137015_, Collection<? extends Entity> p_137016_, Enchantment p_137017_, int p_137018_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-