Class SoundVolumePacket

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

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

    • SoundVolumePacket

      public SoundVolumePacket()
    • SoundVolumePacket

      public SoundVolumePacket(SoundFile file, long requestId, float volume, float pitch, int attenuationDistance)
  • Method Details

    • encode

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

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

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