Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12 Pre-Release 6, Minecraft 1.12, Minecraft 1.12.1 Pre-Release 1, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 17w43b, Minecraft 17w47b, Minecraft 18w01a, Minecraft 18w11a, Minecraft 1.13-pre1
You cannot get the item from the offhand of an armor stand by right clicking the armor stand with an empty hand. Because shields are placed in the offhand when right clicking an armor stand with arms the expected behavior would be that you can get the shield back again as well.
- Summon an armor stand with arms
- Right click it while holding a shield
- Right click it again to get the shield back
→ You will notice that you cannot get the shield back
Based on 1.11.2 decompiled using MCP 9.35 rc1
The method net.minecraft.entity.item.EntityArmorStand.getClickedSlot(Vec3d) does not test if the armor stand has an item in the offhand.