- Enclosing class:
PlayerPickItemEvents
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
@Nullable net.minecraft.world.item.ItemStack
onPickItemFromBlock(net.minecraft.server.level.ServerPlayer player,
net.minecraft.core.BlockPos pos,
net.minecraft.world.level.block.state.BlockState state,
boolean requestIncludeData)
Determines the pick item stack to give to a player that is attempting to pick an item from a block.