Package de.mrjulsen.dragnsounds.net.cts
Class UpdateMetadataPacket
java.lang.Object
de.mrjulsen.dragnsounds.net.cts.UpdateMetadataPacket
- All Implemented Interfaces:
de.mrjulsen.mcdragonlib.net.IPacketBase<UpdateMetadataPacket>
public class UpdateMetadataPacket
extends Object
implements de.mrjulsen.mcdragonlib.net.IPacketBase<UpdateMetadataPacket>
-
Constructor Summary
ConstructorDescriptionUpdateMetadataPacket
(String id, SoundLocation location, Map<String, String> metadata) UpdateMetadataPacket
(String id, net.minecraft.nbt.CompoundTag nbt, Map<String, String> metadata) -
Method Summary
Modifier and TypeMethodDescriptiondecode
(net.minecraft.network.FriendlyByteBuf buf) void
encode
(UpdateMetadataPacket packet, net.minecraft.network.FriendlyByteBuf buf) void
handle
(UpdateMetadataPacket packet, Supplier<dev.architectury.networking.NetworkManager.PacketContext> contextSupplier)
-
Constructor Details
-
UpdateMetadataPacket
public UpdateMetadataPacket() -
UpdateMetadataPacket
-
UpdateMetadataPacket
-
-
Method Details
-
encode
- Specified by:
encode
in interfacede.mrjulsen.mcdragonlib.net.IPacketBase<UpdateMetadataPacket>
-
decode
- Specified by:
decode
in interfacede.mrjulsen.mcdragonlib.net.IPacketBase<UpdateMetadataPacket>
-
handle
public void handle(UpdateMetadataPacket packet, Supplier<dev.architectury.networking.NetworkManager.PacketContext> contextSupplier) - Specified by:
handle
in interfacede.mrjulsen.mcdragonlib.net.IPacketBase<UpdateMetadataPacket>
-