Package net.minecraft.server.command
Class EnchantCommand
java.lang.Object
net.minecraft.server.command.EnchantCommand
- Mappings:
Namespace Name official yh
intermediary net/minecraft/class_3048
named net/minecraft/server/command/EnchantCommand
-
Field Summary
Modifier and TypeFieldDescriptionprivate static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static int
execute(ServerCommandSource source, Collection<? extends Entity> targets, Enchantment enchantment, int level)
static void
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
-
Field Details
-
FAILED_ENTITY_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType FAILED_ENTITY_EXCEPTION- Mappings:
Namespace Name Mixin selector official a
Lyh;a:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_13629
Lnet/minecraft/class_3048;field_13629:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named FAILED_ENTITY_EXCEPTION
Lnet/minecraft/server/command/EnchantCommand;FAILED_ENTITY_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
FAILED_ITEMLESS_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType FAILED_ITEMLESS_EXCEPTION- Mappings:
Namespace Name Mixin selector official b
Lyh;b:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_13631
Lnet/minecraft/class_3048;field_13631:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named FAILED_ITEMLESS_EXCEPTION
Lnet/minecraft/server/command/EnchantCommand;FAILED_ITEMLESS_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
FAILED_INCOMPATIBLE_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType FAILED_INCOMPATIBLE_EXCEPTION- Mappings:
Namespace Name Mixin selector official c
Lyh;c:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_13633
Lnet/minecraft/class_3048;field_13633:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named FAILED_INCOMPATIBLE_EXCEPTION
Lnet/minecraft/server/command/EnchantCommand;FAILED_INCOMPATIBLE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
FAILED_LEVEL_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType FAILED_LEVEL_EXCEPTION- Mappings:
Namespace Name Mixin selector official d
Lyh;d:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
intermediary field_13632
Lnet/minecraft/class_3048;field_13632:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
named FAILED_LEVEL_EXCEPTION
Lnet/minecraft/server/command/EnchantCommand;FAILED_LEVEL_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
-
FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType FAILED_EXCEPTION- Mappings:
Namespace Name Mixin selector official e
Lyh;e:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
intermediary field_13630
Lnet/minecraft/class_3048;field_13630:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
named FAILED_EXCEPTION
Lnet/minecraft/server/command/EnchantCommand;FAILED_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
-
Constructor Details
-
EnchantCommand
public EnchantCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)- Mappings:
Namespace Name Mixin selector official a
Lyh;a(Lcom/mojang/brigadier/CommandDispatcher;)V
intermediary method_13243
Lnet/minecraft/class_3048;method_13243(Lcom/mojang/brigadier/CommandDispatcher;)V
named register
Lnet/minecraft/server/command/EnchantCommand;register(Lcom/mojang/brigadier/CommandDispatcher;)V
-
execute
private static int execute(ServerCommandSource source, Collection<? extends Entity> targets, Enchantment enchantment, int level) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lyh;a(Ldl;Ljava/util/Collection;Lbuj;I)I
intermediary method_13241
Lnet/minecraft/class_3048;method_13241(Lnet/minecraft/class_2168;Ljava/util/Collection;Lnet/minecraft/class_1887;I)I
named execute
Lnet/minecraft/server/command/EnchantCommand;execute(Lnet/minecraft/server/command/ServerCommandSource;Ljava/util/Collection;Lnet/minecraft/enchantment/Enchantment;I)I
-