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>
-
Konstruktorübersicht
KonstruktorBeschreibungSoundVolumePacket
(SoundFile file, long requestId, float volume, float pitch, int attenuationDistance) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdecode
(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)
-
Konstruktordetails
-
SoundVolumePacket
public SoundVolumePacket() -
SoundVolumePacket
public SoundVolumePacket(SoundFile file, long requestId, float volume, float pitch, int attenuationDistance)
-
-
Methodendetails
-
encode
- Angegeben von:
encode
in Schnittstellede.mrjulsen.mcdragonlib.net.IPacketBase<SoundVolumePacket>
-
decode
- Angegeben von:
decode
in Schnittstellede.mrjulsen.mcdragonlib.net.IPacketBase<SoundVolumePacket>
-
handle
public void handle(SoundVolumePacket packet, Supplier<dev.architectury.networking.NetworkManager.PacketContext> contextSupplier) - Angegeben von:
handle
in Schnittstellede.mrjulsen.mcdragonlib.net.IPacketBase<SoundVolumePacket>
-