Class PlaySoundCommand

java.lang.Object
net.minecraft.server.commands.PlaySoundCommand

public class PlaySoundCommand extends Object
  • Field Details

    • ERROR_TOO_FAR

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TOO_FAR
  • Constructor Details

    • PlaySoundCommand

      public PlaySoundCommand()
  • Method Details

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_138157_)
    • source

      private static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> source(SoundSource p_138152_)
    • playSound

      private static int playSound(CommandSourceStack p_138161_, Collection<ServerPlayer> p_138162_, ResourceLocation p_138163_, SoundSource p_138164_, Vec3 p_138165_, float p_138166_, float p_138167_, float p_138168_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException