Class PlaySoundPacket

java.lang.Object
de.mrjulsen.dragnsounds.net.stc.PlaySoundPacket
All Implemented Interfaces:
de.mrjulsen.mcdragonlib.net.IPacketBase<PlaySoundPacket>

public class PlaySoundPacket extends Object implements de.mrjulsen.mcdragonlib.net.IPacketBase<PlaySoundPacket>
  • Constructor Details

    • PlaySoundPacket

      public PlaySoundPacket()
    • PlaySoundPacket

      public PlaySoundPacket(long soundId, int triggerIndex, SoundFile file, PlaybackConfig config, long clientCallbackRequestId)
  • Method Details

    • encode

      public void encode(PlaySoundPacket packet, net.minecraft.network.FriendlyByteBuf buf)
      Specified by:
      encode in interface de.mrjulsen.mcdragonlib.net.IPacketBase<PlaySoundPacket>
    • decode

      public PlaySoundPacket decode(net.minecraft.network.FriendlyByteBuf buf)
      Specified by:
      decode in interface de.mrjulsen.mcdragonlib.net.IPacketBase<PlaySoundPacket>
    • handle

      public void handle(PlaySoundPacket packet, Supplier<dev.architectury.networking.NetworkManager.PacketContext> contextSupplier)
      Specified by:
      handle in interface de.mrjulsen.mcdragonlib.net.IPacketBase<PlaySoundPacket>