net.minecraft.server.command

public class EnchantCommand

net.minecraft.server.commands.EnchantCommand
net.minecraft.class_3048
net.minecraft.server.command.EnchantCommand

Field summary

Modifier and TypeField
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_NOT_LIVING_ENTITY
field_13629
FAILED_ENTITY_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_NO_ITEM
field_13631
FAILED_ITEMLESS_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_INCOMPATIBLE
field_13633
FAILED_INCOMPATIBLE_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
ERROR_LEVEL_TOO_HIGH
field_13632
FAILED_LEVEL_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_NOTHING_HAPPENED
field_13630
FAILED_EXCEPTION

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static void
register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context)
method_13243(com.mojang.brigadier.CommandDispatcher<class_2168> arg0, class_7157 arg1)
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, CommandRegistryAccess registryAccess)
private static int
enchant(CommandSourceStack source, Collection<? extends Entity> targets, Holder<Enchantment> enchantmentHolder, int level)
method_13241(class_2168 arg0, Collection<? extends class_1297> arg1, class_6880<class_1887> arg2, int arg3)
execute(ServerCommandSource source, Collection<? extends Entity> targets, RegistryEntry<Enchantment> enchantment, int level)
private static Text
lambda$enchant$1(Holder arg0, int arg1, Collection arg2)
method_51963(class_6880 arg0, int arg1, Collection arg2)
method_51963(RegistryEntry arg0, int arg1, Collection arg2)
private static Text
lambda$enchant$0(Holder arg0, int arg1, Collection arg2)
method_51964(class_6880 arg0, int arg1, Collection arg2)
method_51964(RegistryEntry arg0, int arg1, Collection arg2)
private static int
lambda$register$1(com.mojang.brigadier.context.CommandContext arg0)
method_13245(com.mojang.brigadier.context.CommandContext arg0)
method_13245(com.mojang.brigadier.context.CommandContext context)
private static int
lambda$register$0(com.mojang.brigadier.context.CommandContext arg0)
method_13240(com.mojang.brigadier.context.CommandContext arg0)
method_13240(com.mojang.brigadier.context.CommandContext context)
private static com.mojang.brigadier.Message
lambda$static$3(Object arg0, Object arg1)
method_13248(Object arg0, Object arg1)
method_13248(Object level, Object maxLevel)
private static com.mojang.brigadier.Message
lambda$static$2(Object arg0)
method_13244(Object arg0)
method_13244(Object itemName)
private static com.mojang.brigadier.Message
lambda$static$1(Object arg0)
method_13242(Object arg0)
method_13242(Object entityName)
private static com.mojang.brigadier.Message
lambda$static$0(Object arg0)
method_13247(Object arg0)
method_13247(Object entityName)