getSlot

public int getSlot()

Gets the inventory slot number for the book item that triggered this event.

This is getClassById slot number on the player's hotbar in the range 0-8.

Return

the inventory slot number that the book item occupies