Skip to content

Add slot info for inventoryManager.getItemInHand #67

@zyxkad

Description

@zyxkad

Describe your idea

As the title, return the slot that the player selecting, then we could easily figure out which slot should we operate for the player in some specific case (e.g. put the current handing item into the chest).

Describe alternatives you've considered if you've any

invoke both getItems() and getPlayerHand(), compare items name, count and nbt then we can get a slow and inaccurate response.

Additional context

No response

Linked Issues

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions