Class PlaySoundCommand
java.lang.Object
net.minecraft.server.commands.PlaySoundCommand
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Collection<ServerPlayer> getCallingPlayerAsCollection(@Nullable ServerPlayer player) private static intplaySound(CommandSourceStack source, Collection<ServerPlayer> players, Identifier sound, SoundSource soundSource, Vec3 position, float volume, float pitch, float minVolume) static voidregister(CommandDispatcher<CommandSourceStack> dispatcher) private static LiteralArgumentBuilder<CommandSourceStack> source(SoundSource source)
-
Field Details
-
ERROR_TOO_FAR
-
-
Constructor Details
-
PlaySoundCommand
public PlaySoundCommand()
-
-
Method Details
-
register
-
source
-
getCallingPlayerAsCollection
-
playSound
private static int playSound(CommandSourceStack source, Collection<ServerPlayer> players, Identifier sound, SoundSource soundSource, Vec3 position, float volume, float pitch, float minVolume) throws CommandSyntaxException - Throws:
CommandSyntaxException
-