Skip to content

Commit

Permalink
add inventory api docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Charismara committed Sep 5, 2024
1 parent 6cffde9 commit adaa2ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/inventory/02-creating-a-tab.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ public class TestInventoryTab extends AbstractInventoryTab {
guiGraphics.renderFakeItem(this.iconStack, this.getX() + 5, this.getY() + 8 + (isTopRow ? 1 : -1));
}

/**
* Called when the player clicks on the tab
*/
@Override
public void sendOpenContainerPacket() {
// Send a packet to the server to request the container to be opened
Expand Down

0 comments on commit adaa2ab

Please sign in to comment.