Skip to content

feat: slot ranges#49

Open
Laptop59 wants to merge 1 commit into
Pumpkin-MC:masterfrom
Laptop59:slot_ranges
Open

feat: slot ranges#49
Laptop59 wants to merge 1 commit into
Pumpkin-MC:masterfrom
Laptop59:slot_ranges

Conversation

@Laptop59
Copy link
Copy Markdown
Contributor

@Laptop59 Laptop59 commented May 8, 2026

Slot Ranges are ranges that have a name and a range of integers (the indices of slots) they refer to. They are meaningful for either a player, an entity, or a container (block). They can refer to one or more slots. Here are some examples of them:

  • container.2 = [2]: Refers to only the 3rd slot of a container.
  • enderchest.9 = [209]: Refers to only the 10th slot of a player's ender chest.
  • hotbar.* = [0, 1, 2, 3, 4, 5, 6, 7, 8]: Refers to all the 9 slots of a player's hotbar.

I think these could be a great candidate to extract as they might change occasionally between versions, and could be part of a constant-time map.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant