Skip to content

Commit

Permalink
packet/set_player_inventory_options.go: Fix documentation for packet
Browse files Browse the repository at this point in the history
  • Loading branch information
TwistedAsylumMC committed Dec 8, 2023
1 parent 14c3da7 commit b476362
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions minecraft/protocol/packet/set_player_inventory_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ const (
InventoryRightTabArmour
)

// SetPlayerInventoryOptions is sent by the client when it tries to toggle the state of a slot within a Crafter.
// SetPlayerInventoryOptions is a bidirectional packet that can be used to update the inventory options of a player.
type SetPlayerInventoryOptions struct {
// LeftInventoryTab is the tab that is selected on the left side of the inventory. This is usually for the creative
// inventory. It is one of the constants above.
// inventory. It is one of the InventoryLeftTab constants above.
LeftInventoryTab byte
// RightInventoryTab is the tab that is selected on the right side of the inventory. This is usually for the player's
// own inventory. It is one of the constants above.
// own inventory. It is one of the InventoryRightTab constants above.
RightInventoryTab byte
// Filtering is whether the player has enabled the filtering between recipes they have unlocked or not.
Filtering bool
// InventoryLayout is the layout of the inventory. It is one of the constants above.
// InventoryLayout is the layout of the inventory. It is one of the InventoryLayout constants above.
InventoryLayout byte
// CraftingLayout is the layout of the crafting inventory. It is one of the constants above.
// CraftingLayout is the layout of the crafting inventory. It is one of the InventoryLayout constants above.
CraftingLayout byte
}

Expand Down

0 comments on commit b476362

Please sign in to comment.