Klasse SoundVolumePacket

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

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

    • SoundVolumePacket

      public SoundVolumePacket()
    • SoundVolumePacket

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

    • encode

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

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

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