类 PlaySoundCommand
- java.lang.Object
-
- net.minecraft.server.command.PlaySoundCommand
-
public class PlaySoundCommand extends Object
- Mappings:
Namespace Name official ywintermediary net/minecraft/class_3091named net/minecraft/server/command/PlaySoundCommand
-
-
字段概要
字段 修饰符和类型 字段 说明 private static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeFAILED_EXCEPTION
-
构造器概要
构造器 构造器 说明 PlaySoundCommand()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 private static intexecute(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Identifier sound, SoundCategory category, Vec3d pos, float volume, float pitch, float minVolume)private static com.mojang.brigadier.builder.LiteralArgumentBuilder<ServerCommandSource>makeArgumentsForCategory(SoundCategory category)static voidregister(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
-
-
-
字段详细资料
-
FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType FAILED_EXCEPTION
- Mappings:
Namespace Name Mixin selector official aLyw;a:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;intermediary field_13678Lnet/minecraft/class_3091;field_13678:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;named FAILED_EXCEPTIONLnet/minecraft/server/command/PlaySoundCommand;FAILED_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
-
方法详细资料
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
- Mappings:
Namespace Name Mixin selector official aLyw;a(Lcom/mojang/brigadier/CommandDispatcher;)Vintermediary method_13500Lnet/minecraft/class_3091;method_13500(Lcom/mojang/brigadier/CommandDispatcher;)Vnamed registerLnet/minecraft/server/command/PlaySoundCommand;register(Lcom/mojang/brigadier/CommandDispatcher;)V
-
makeArgumentsForCategory
private static com.mojang.brigadier.builder.LiteralArgumentBuilder<ServerCommandSource> makeArgumentsForCategory(SoundCategory category)
- Mappings:
Namespace Name Mixin selector official aLyw;a(Laex;)Lcom/mojang/brigadier/builder/LiteralArgumentBuilder;intermediary method_13497Lnet/minecraft/class_3091;method_13497(Lnet/minecraft/class_3419;)Lcom/mojang/brigadier/builder/LiteralArgumentBuilder;named makeArgumentsForCategoryLnet/minecraft/server/command/PlaySoundCommand;makeArgumentsForCategory(Lnet/minecraft/sound/SoundCategory;)Lcom/mojang/brigadier/builder/LiteralArgumentBuilder;
-
execute
private static int execute(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Identifier sound, SoundCategory category, Vec3d pos, float volume, float pitch, float minVolume) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLyw;a(Ldg;Ljava/util/Collection;Lwp;Laex;Ldma;FFF)Iintermediary method_13504Lnet/minecraft/class_3091;method_13504(Lnet/minecraft/class_2168;Ljava/util/Collection;Lnet/minecraft/class_2960;Lnet/minecraft/class_3419;Lnet/minecraft/class_243;FFF)Inamed executeLnet/minecraft/server/command/PlaySoundCommand;execute(Lnet/minecraft/server/command/ServerCommandSource;Ljava/util/Collection;Lnet/minecraft/util/Identifier;Lnet/minecraft/sound/SoundCategory;Lnet/minecraft/util/math/Vec3d;FFF)I
-
-