Skip to content
Flint
Documentation

inventory

typePaper

An inventory: a player's, a chest's or a custom menu.

Properties 1

Number of slots.

Methods 7

Adds an item to the first free slot.

Removes items of a type.

The item in a slot, or none.

Puts an item in a slot (none empties it).

True if the inventory has at least that many of a type.

How many items of a type are in the inventory.

Empties the inventory.