Class ServerSoundManager

java.lang.Object
de.mrjulsen.dragnsounds.core.ServerSoundManager

public class ServerSoundManager extends Object
  • Field Details

  • Constructor Details

    • ServerSoundManager

      public ServerSoundManager()
  • Method Details

    • playSound

      public static long playSound(SoundFile file, PlaybackConfig playback, net.minecraft.server.level.ServerPlayer[] players, long clientCallbackRequestId)
    • sendSoundData

      public static void sendSoundData(net.minecraft.world.entity.player.Player player, long soundId, int size, int index)
    • closeOnDisconnect

      public static void closeOnDisconnect(net.minecraft.world.entity.player.Player player)
    • getSoundPlaybackData

      public static void getSoundPlaybackData(long soundId, net.minecraft.server.level.ServerPlayer[] players, SoundGetDataCallback.ISoundPlaybackData callback)
    • stopSound

      public static void stopSound(net.minecraft.world.entity.player.Player player, long soundId)
    • receiveUploadPacket

      public static void receiveUploadPacket(net.minecraft.server.level.ServerPlayer player, UploadSoundPacket packet)
    • closeUpload

      public static void closeUpload(long requestId)
    • sendFileListToPlayer

      public static void sendFileListToPlayer(net.minecraft.world.entity.player.Player player, long requestId, net.minecraft.world.level.Level level, IFilter<SoundFile>[] filters)
    • getSoundFileList

      public static SoundFile[] getSoundFileList(net.minecraft.world.level.Level level, IFilter<SoundFile>[] filters) throws IOException
      Throws:
      IOException
    • getSoundFile

      public static SoundFile getSoundFile(SoundLocation location, String id) throws IOException
      Throws:
      IOException
    • deleteSound

      public static de.mrjulsen.mcdragonlib.data.StatusResult deleteSound(SoundLocation loc, String id) throws IOException
      Throws:
      IOException
    • getAllSoundFileMetadata

      public static Map<String,String> getAllSoundFileMetadata(SoundLocation loc, String id)
    • getAllSoundFiles

      public static Collection<SoundFile> getAllSoundFiles(net.minecraft.world.level.Level level)
    • getAllSoundFilesIn

      public static Collection<SoundFile> getAllSoundFilesIn(SoundLocation location)
    • getAllUsedLocations

      public static Collection<SoundLocation> getAllUsedLocations(net.minecraft.world.level.Level level)
    • getAllUsedLocationsIn

      public static Collection<SoundLocation> getAllUsedLocationsIn(SoundLocation location)
    • cleanUp

      public static void cleanUp(net.minecraft.world.level.Level level, boolean async)