将使用过的手传递给物品行为(normal_use、normal_use_with_rotation)
作者: matheustavarestrindade创建于 2026年9月18日更新于 2026年9月18日
标签apiitemrefactor
问题是什么 ItemBehaviour::normal_use 和 normal_use_with_rotation 没有接收到使用的手。 ItemRegistry 和 handle_use_item 知道了(Hand::from_packet_id、get_stack_in_hand(hand)),但它停留在注册表中,因此一个物品无法判断是否是从主手还是非主手使用的。
内容来源: Pumpkin-MC/Pumpkin