LivingEntity.getHeldItem

docs.livingentity.gethelditem
overload 1:
LivingEntity:getHeldItem()
Method Property Fluent Description Representation
Return Value an ItemStack
overload 2:
LivingEntity:getHeldItem(offhand)
Method Property Fluent Description Representation
offhand accepts a Boolean
Return Value an ItemStack
a a