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(@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(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher) private static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> source(SoundSource source)
-
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 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 com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-