ClientPickBlockApplyCallback

public interface ClientPickBlockApplyCallback

This event is emitted during the block-picking process. It can be used to modify the returned ItemStack, as well as nullify it - returning an empty ItemStack will cause the event to leave, and no block to be picked.

Functions

pick
Link copied to clipboard
abstract ItemStack pick(PlayerEntity player, HitResult result, ItemStack stack)

Sources

jvm source
Link copied to clipboard