apply

open override fun apply(entity: LivingEntity, slot: EquipmentSlot)

Applies this action to the item in the slot of entity.


open override fun apply(world: World, itemStack: ItemStack): List<ItemStack>

Applies this action to a copy of itemStack, in the context of world, then returns it. Does not modify the original itemStack. This function is used in cases where the item interaction was not triggered by an entity.