Module inventory

Module inventory 

Source

Modules§

components
default_components
item
operations

Macros§

define_data_components

Structs§

ClientsideCloseContainerEvent
A Bevy event that’s fired when our client closed a container.
CloseContainerEvent
Tell the server that we want to close a container.
ContainerClickEvent
DataComponentPatch
An update to an item’s data components.
Inventory
A component present on all local players that have an inventory.
InventoryPlugin
InventorySystems
ItemStackData
An item in an inventory, with a count and a set of data components.
LastSentSelectedHotbarSlot
The item slot that the server thinks we have selected.
MenuOpenedEvent
A Bevy trigger that’s fired when our client should show a new screen (like a chest or crafting table).
Player
SetContainerContentEvent
Sent from the server when the contents of a container are replaced.
SetSelectedHotbarSlotEvent
An ECS message to switch our hand to a different hotbar slot.
SlotList
A fixed-size list of ItemStacks.

Enums§

AnvilMenuLocation
BeaconMenuLocation
BlastFurnaceMenuLocation
BrewingStandMenuLocation
CartographyTableMenuLocation
Crafter3x3MenuLocation
CraftingMenuLocation
EnchantmentMenuLocation
FurnaceMenuLocation
Generic3x3MenuLocation
Generic9x1MenuLocation
Generic9x2MenuLocation
Generic9x3MenuLocation
Generic9x4MenuLocation
Generic9x5MenuLocation
Generic9x6MenuLocation
GrindstoneMenuLocation
HopperMenuLocation
ItemStack
Either an item in an inventory or nothing.
LecternMenuLocation
LoomMenuLocation
Menu
A menu, which is a fixed collection of slots.
MenuLocation
MerchantMenuLocation
PlayerMenuLocation
ShulkerBoxMenuLocation
SmithingMenuLocation
SmokerMenuLocation
StonecutterMenuLocation

Functions§

ensure_has_sent_carried_item
A system that makes sure that LastSentSelectedHotbarSlot is in sync with Inventory::selected_hotbar_slot.
handle_client_side_close_container_trigger
handle_container_click_event
handle_set_container_content_trigger
handle_set_selected_hotbar_slot_event