Class SoundPositionPacket

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

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

    • SoundPositionPacket

      public SoundPositionPacket()
    • SoundPositionPacket

      public SoundPositionPacket(SoundFile file, long requestId, net.minecraft.world.phys.Vec3 pos)
  • Method Details

    • encode

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

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

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