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.
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 TypeMethodDescriptiononPickupItem(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)
-