Class GrabItemPacket

java.lang.Object
com.hammy275.immersivemc.common.network.packet.GrabItemPacket

public class GrabItemPacket extends Object
  • Field Details

    • entityId

      public final int entityId
  • Constructor Details

    • GrabItemPacket

      public GrabItemPacket(net.minecraft.world.entity.item.ItemEntity item)
    • GrabItemPacket

      public GrabItemPacket(int entityId)
  • Method Details

    • encode

      public static void encode(GrabItemPacket packet, net.minecraft.network.FriendlyByteBuf buffer)
    • decode

      public static GrabItemPacket decode(net.minecraft.network.FriendlyByteBuf buffer)
    • handle

      public static void handle(GrabItemPacket packet, net.minecraft.server.level.ServerPlayer player)