Class SoundDopplerPacket

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

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

    • SoundDopplerPacket

      public SoundDopplerPacket()
    • SoundDopplerPacket

      public SoundDopplerPacket(SoundFile file, long requestId, float doppler, net.minecraft.world.phys.Vec3 velocity)
  • Method Details

    • encode

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

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

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