类 DifficultyCommand
- java.lang.Object
-
- net.minecraft.server.command.DifficultyCommand
-
public class DifficultyCommand extends Object
- Mappings:
Namespace Name official xxintermediary net/minecraft/class_3036named net/minecraft/server/command/DifficultyCommand
-
-
字段概要
字段 修饰符和类型 字段 说明 private static com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeFAILURE_EXCEPTION
-
构造器概要
构造器 构造器 说明 DifficultyCommand()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static intexecute(ServerCommandSource source, Difficulty difficulty)static voidregister(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
-
-
-
字段详细资料
-
FAILURE_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType FAILURE_EXCEPTION
- Mappings:
Namespace Name Mixin selector official aLxx;a:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;intermediary field_13602Lnet/minecraft/class_3036;field_13602:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;named FAILURE_EXCEPTIONLnet/minecraft/server/command/DifficultyCommand;FAILURE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
-
方法详细资料
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
- Mappings:
Namespace Name Mixin selector official aLxx;a(Lcom/mojang/brigadier/CommandDispatcher;)Vintermediary method_13169Lnet/minecraft/class_3036;method_13169(Lcom/mojang/brigadier/CommandDispatcher;)Vnamed registerLnet/minecraft/server/command/DifficultyCommand;register(Lcom/mojang/brigadier/CommandDispatcher;)V
-
execute
public static int execute(ServerCommandSource source, Difficulty difficulty) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLxx;a(Ldg;Lard;)Iintermediary method_13173Lnet/minecraft/class_3036;method_13173(Lnet/minecraft/class_2168;Lnet/minecraft/class_1267;)Inamed executeLnet/minecraft/server/command/DifficultyCommand;execute(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/world/Difficulty;)I
-
-