Package net.minecraft.server.commands
Class PlaySoundCommand
java.lang.Object
net.minecraft.server.commands.PlaySoundCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Collection
<ServerPlayer> private static int
playSound
(CommandSourceStack source, Collection<ServerPlayer> targets, ResourceLocation sound, SoundSource category, Vec3 pos, float volume, float pitch, float minVolume) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher) private static com.mojang.brigadier.builder.LiteralArgumentBuilder
<CommandSourceStack> source
(SoundSource category)
-
Field Details
-
ERROR_TOO_FAR
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TOO_FAR
-
-
Constructor Details
-
PlaySoundCommand
public PlaySoundCommand()
-
-
Method Details
-
register
-
source
private static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> source(SoundSource category) -
getCallingPlayerAsCollection
-
playSound
private static int playSound(CommandSourceStack source, Collection<ServerPlayer> targets, ResourceLocation sound, SoundSource category, Vec3 pos, float volume, float pitch, float minVolume) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-