类 SpectateCommand
- java.lang.Object
-
- net.minecraft.server.command.SpectateCommand
-
public class SpectateCommand extends Object
- Mappings:
Namespace Name official zmintermediary net/minecraft/class_4694named net/minecraft/server/command/SpectateCommand
-
-
字段概要
字段 修饰符和类型 字段 说明 private static com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeNOT_SPECTATOR_EXCEPTIONprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeSPECTATE_SELF_EXCEPTION
-
构造器概要
构造器 构造器 说明 SpectateCommand()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 private static intexecute(ServerCommandSource source, @Nullable Entity entity, ServerPlayerEntity player)static voidregister(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
-
-
-
字段详细资料
-
SPECTATE_SELF_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType SPECTATE_SELF_EXCEPTION
- Mappings:
Namespace Name Mixin selector official aLzm;a:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;intermediary field_21463Lnet/minecraft/class_4694;field_21463:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;named SPECTATE_SELF_EXCEPTIONLnet/minecraft/server/command/SpectateCommand;SPECTATE_SELF_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
NOT_SPECTATOR_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType NOT_SPECTATOR_EXCEPTION
- Mappings:
Namespace Name Mixin selector official bLzm;b:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;intermediary field_21464Lnet/minecraft/class_4694;field_21464:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;named NOT_SPECTATOR_EXCEPTIONLnet/minecraft/server/command/SpectateCommand;NOT_SPECTATOR_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
-
方法详细资料
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
- Mappings:
Namespace Name Mixin selector official aLzm;a(Lcom/mojang/brigadier/CommandDispatcher;)Vintermediary method_23653Lnet/minecraft/class_4694;method_23653(Lcom/mojang/brigadier/CommandDispatcher;)Vnamed registerLnet/minecraft/server/command/SpectateCommand;register(Lcom/mojang/brigadier/CommandDispatcher;)V
-
execute
private static int execute(ServerCommandSource source, @Nullable @Nullable Entity entity, ServerPlayerEntity player) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLzm;a(Ldg;Lasl;Labk;)Iintermediary method_23652Lnet/minecraft/class_4694;method_23652(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;Lnet/minecraft/class_3222;)Inamed executeLnet/minecraft/server/command/SpectateCommand;execute(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;Lnet/minecraft/server/network/ServerPlayerEntity;)I
-
-