类 EnchantCommand
java.lang.Object
net.minecraft.server.commands.EnchantCommand
-
字段概要
字段修饰符和类型字段说明private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static int
enchant
(CommandSourceStack p_249815_, Collection<? extends Entity> p_248848_, Holder<Enchantment> p_251252_, int p_249941_) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_251241_, CommandBuildContext p_251038_)
-
字段详细资料
-
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
-
-
构造器详细资料
-
EnchantCommand
public EnchantCommand()
-
-
方法详细资料
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_251241_, CommandBuildContext p_251038_) -
enchant
private static int enchant(CommandSourceStack p_249815_, Collection<? extends Entity> p_248848_, Holder<Enchantment> p_251252_, int p_249941_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-