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 Summary
ConstructorDescriptionSoundVolumePacket
(SoundFile file, long requestId, float volume, float pitch, int attenuationDistance) -
Method Summary
Modifier and TypeMethodDescriptiondecode
(net.minecraft.network.FriendlyByteBuf buf) void
encode
(SoundVolumePacket packet, net.minecraft.network.FriendlyByteBuf buf) void
handle
(SoundVolumePacket packet, Supplier<dev.architectury.networking.NetworkManager.PacketContext> contextSupplier)
-
Constructor Details
-
SoundVolumePacket
public SoundVolumePacket() -
SoundVolumePacket
public SoundVolumePacket(SoundFile file, long requestId, float volume, float pitch, int attenuationDistance)
-
-
Method Details
-
encode
- Specified by:
encode
in interfacede.mrjulsen.mcdragonlib.net.IPacketBase<SoundVolumePacket>
-
decode
- Specified by:
decode
in interfacede.mrjulsen.mcdragonlib.net.IPacketBase<SoundVolumePacket>
-
handle
public void handle(SoundVolumePacket packet, Supplier<dev.architectury.networking.NetworkManager.PacketContext> contextSupplier) - Specified by:
handle
in interfacede.mrjulsen.mcdragonlib.net.IPacketBase<SoundVolumePacket>
-