Class ExprCursorSlot

All Implemented Interfaces:
Converter<org.bukkit.entity.Player,​Slot>, Debuggable, Expression<Slot>, SyntaxElement

@Name("Cursor Slot") @Description("The item which the player has on their cursor. This slot is always empty if player has no inventories open.") @Examples({"cursor slot of player is dirt","set cursor slot of player to 64 diamonds"}) @Since("2.2-dev17") public class ExprCursorSlot extends SimplePropertyExpression<org.bukkit.entity.Player,​Slot>
Cursor item slot is not actually an inventory slot, but an item which the player has in their cursor when any inventory is open for them.
  • Constructor Details

    • ExprCursorSlot

      public ExprCursorSlot()
  • Method Details