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> getCallingPlayerAsCollection
(ServerPlayer pPlayer) private static int
playSound
(CommandSourceStack pSource, Collection<ServerPlayer> pTargets, ResourceLocation pSound, SoundSource pCategory, Vec3 pPos, float pVolume, float pPitch, float pMinVolume) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_138157_) private static com.mojang.brigadier.builder.LiteralArgumentBuilder
<CommandSourceStack> source
(SoundSource p_138152_)
-
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 p_138152_) -
getCallingPlayerAsCollection
private static Collection<ServerPlayer> getCallingPlayerAsCollection(@Nullable ServerPlayer pPlayer) -
playSound
private static int playSound(CommandSourceStack pSource, Collection<ServerPlayer> pTargets, ResourceLocation pSound, SoundSource pCategory, Vec3 pPos, float pVolume, float pPitch, float pMinVolume) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-