Interface ClientPickBlockGatherCallback


public interface ClientPickBlockGatherCallback
This event is emitted at the beginning of the block picking process in order to find any applicable ItemStack. The first non-empty ItemStack will be returned, overriding vanilla behavior.

Note that this is called any time the pick key is pressed, even if there is no target block. The HitResult could be a BlockHitResult or an EntityHitResult. If the hit missed, it will be a BlockHitResult with type HitResult.Type.MISS, so make sure to check for that.