public class PlaySoundCommand
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
FAILED_EXCEPTION |
Constructor and Description |
---|
PlaySoundCommand() |
Modifier and Type | Method and Description |
---|---|
private static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSource> |
buildCategorySubcommand(SoundCategory category) |
private static int |
playSound(CommandSource source,
java.util.Collection<ServerPlayerEntity> targets,
ResourceLocation soundIn,
SoundCategory category,
Vec3d pos,
float volume,
float pitch,
float minVolume) |
static void |
register(com.mojang.brigadier.CommandDispatcher<CommandSource> dispatcher) |
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType FAILED_EXCEPTION
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSource> dispatcher)
private static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSource> buildCategorySubcommand(SoundCategory category)
private static int playSound(CommandSource source, java.util.Collection<ServerPlayerEntity> targets, ResourceLocation soundIn, SoundCategory category, Vec3d pos, float volume, float pitch, float minVolume) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException