Snowiiii / Pumpkin

Empowering everyone to host fast and efficient Minecraft servers.
https://snowiiii.github.io/Pumpkin/
MIT License
2.64k stars 78 forks source link

Add packet SClickContainer and abstractions #60

Closed Bryntet closed 1 month ago

Bryntet commented 2 months ago

Only the packet and abstraction has been implemented so far, the logic will be implemented shortly.

Bryntet commented 1 month ago

Tried to get double-clicking to work, but since everything else works, and I'm kind of tired of Inventory work, I'll just leave my PR as this.

Also, do note that due to how Pumpkin currently handles packets in quick succession (it doesn't, it sometimes drops them), dragging items only partially works.

Bryntet commented 1 month ago

In this PR, I have also added the command /echest which is very helpful when testing out the inventory system.

It is a global container, that all players can look at at the same time.