Interface PlayerEvents.PickupItem

Enclosing class:
PlayerEvents
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface PlayerEvents.PickupItem
A player is about to pick up an item from the ground: it may be picked up, and they have room. Interrupting leaves it there.
  • Method Summary

    Modifier and Type
    Method
    Description
    onPickupItem(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.entity.item.ItemEntity item)
     
  • Method Details

    • onPickupItem

      EventResult onPickupItem(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.entity.item.ItemEntity item)