Klasse PlaySoundPacket

java.lang.Object
de.mrjulsen.dragnsounds.net.stc.PlaySoundPacket
Alle implementierten Schnittstellen:
de.mrjulsen.mcdragonlib.net.IPacketBase<PlaySoundPacket>

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

    • PlaySoundPacket

      public PlaySoundPacket()
    • PlaySoundPacket

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

    • encode

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

      public PlaySoundPacket decode(net.minecraft.network.FriendlyByteBuf buf)
      Angegeben von:
      decode in Schnittstelle de.mrjulsen.mcdragonlib.net.IPacketBase<PlaySoundPacket>
    • handle

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