diff options
Diffstat (limited to 'src/main/java/com/anthonyhilyard/iceberg/network/NewItemPickupEventPacket.java')
-rw-r--r-- | src/main/java/com/anthonyhilyard/iceberg/network/NewItemPickupEventPacket.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/com/anthonyhilyard/iceberg/network/NewItemPickupEventPacket.java b/src/main/java/com/anthonyhilyard/iceberg/network/NewItemPickupEventPacket.java index 23df08b..b99a36d 100644 --- a/src/main/java/com/anthonyhilyard/iceberg/network/NewItemPickupEventPacket.java +++ b/src/main/java/com/anthonyhilyard/iceberg/network/NewItemPickupEventPacket.java @@ -1,9 +1,9 @@ package com.anthonyhilyard.iceberg.network; -import net.minecraft.item.ItemStack; -import net.minecraft.network.PacketBuffer; +import net.minecraft.world.item.ItemStack; +import net.minecraft.network.FriendlyByteBuf; import net.minecraftforge.common.MinecraftForge; -import net.minecraftforge.fml.network.NetworkEvent; +import net.minecraftforge.fmllegacy.network.NetworkEvent; import java.util.UUID; import java.util.function.Supplier; @@ -22,13 +22,13 @@ public final class NewItemPickupEventPacket this.item = item; } - public static void encode(final NewItemPickupEventPacket msg, final PacketBuffer packetBuffer) + public static void encode(final NewItemPickupEventPacket msg, final FriendlyByteBuf packetBuffer) { packetBuffer.writeUUID(msg.playerUUID); packetBuffer.writeItem(msg.item); } - public static NewItemPickupEventPacket decode(final PacketBuffer packetBuffer) + public static NewItemPickupEventPacket decode(final FriendlyByteBuf packetBuffer) { return new NewItemPickupEventPacket(packetBuffer.readUUID(), packetBuffer.readItem()); } |