Package de.mrjulsen.dragnsounds.net.stc
Class SoundUploadCommandPacket
java.lang.Object
de.mrjulsen.dragnsounds.net.stc.SoundUploadCommandPacket
- All Implemented Interfaces:
de.mrjulsen.mcdragonlib.net.IPacketBase<SoundUploadCommandPacket>
public class SoundUploadCommandPacket
extends Object
implements de.mrjulsen.mcdragonlib.net.IPacketBase<SoundUploadCommandPacket>
-
Constructor Summary
ConstructorDescriptionSoundUploadCommandPacket
(SoundFile.Builder builder, AudioSettings settings, boolean showProgress) SoundUploadCommandPacket
(net.minecraft.nbt.CompoundTag nbt, AudioSettings settings, boolean showProgress) -
Method Summary
Modifier and TypeMethodDescriptiondecode
(net.minecraft.network.FriendlyByteBuf buf) void
encode
(SoundUploadCommandPacket packet, net.minecraft.network.FriendlyByteBuf buf) void
handle
(SoundUploadCommandPacket packet, Supplier<dev.architectury.networking.NetworkManager.PacketContext> contextSupplier)
-
Constructor Details
-
SoundUploadCommandPacket
public SoundUploadCommandPacket() -
SoundUploadCommandPacket
public SoundUploadCommandPacket(SoundFile.Builder builder, AudioSettings settings, boolean showProgress) -
SoundUploadCommandPacket
public SoundUploadCommandPacket(net.minecraft.nbt.CompoundTag nbt, AudioSettings settings, boolean showProgress)
-
-
Method Details
-
encode
- Specified by:
encode
in interfacede.mrjulsen.mcdragonlib.net.IPacketBase<SoundUploadCommandPacket>
-
decode
- Specified by:
decode
in interfacede.mrjulsen.mcdragonlib.net.IPacketBase<SoundUploadCommandPacket>
-
handle
public void handle(SoundUploadCommandPacket packet, Supplier<dev.architectury.networking.NetworkManager.PacketContext> contextSupplier) - Specified by:
handle
in interfacede.mrjulsen.mcdragonlib.net.IPacketBase<SoundUploadCommandPacket>
-