Hotbar Questions

I just have a few questions about a player’s hotbar.

  1. Is there a way I can get the Slot of the active Hotbar / itemInHand?

  2. Is there a way that I can set the active Hotbar slot index?

Never mind I figured it out!

(Posting this so others can figure it out):

You can get/set the slot number and manipulate the active inventory by using: org.spongepowered.api.item.inventory.entity.Hotbar.

1 Like