Package net.minecraft.server.command
Class PlaySoundCommand
java.lang.Object
net.minecraft.server.command.PlaySoundCommand
public class PlaySoundCommand extends Object
-
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
FAILED_EXCEPTION
-
Constructor Summary
Constructors Constructor Description PlaySoundCommand()
-
Method Summary
Modifier and Type Method Description private static int
execute(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 void
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
-
Field Details
-
FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType FAILED_EXCEPTION
-
-
Constructor Details
-
PlaySoundCommand
public PlaySoundCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) -
makeArgumentsForCategory
private static com.mojang.brigadier.builder.LiteralArgumentBuilder<ServerCommandSource> makeArgumentsForCategory(SoundCategory category) -
execute
private static int execute(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Identifier sound, SoundCategory category, Vec3d pos, float volume, float pitch, float minVolume)
-