The bug
Entities such as paintings, boats, primed tnt, falling blocks, all projectiles except fireball (normal variant), dropped items, experience orbs, etc., don't appear on the debug screen when pointed at. This does not affect armor stands or mobs.
How to reproduce
Place, for example, a boat. Drop an item to the ground.Open the F3 debug screen and point at it
→ ❌ The boat doesn't appear on the debug screen
Code analysis
This is caused by code at net.minecraft.client.renderer.GameRenderer.pick
which says that "only if the 'picked' entity is an instance of net.minecraft.world.entity.LivingEntity
" will be assigned to the field crosshairPickEntity
of net.minecraft.client.Minecraft
.
This also causes that these entities, if named, will not show their name tag when hovered.
Note: I also analyzed why items, fishing bobbers, snowballs, eggs and arrows don't appear after fixing, and I've seen that entities which are not 'pickable' (the ones I said) don't appear, but that is intentional and is said as a predicate at the ProjectileUtil.getEntityHitResult
call.
Can confirm.
Relates to MC-194544