BackpackExtension

Contains useful code to work with backpacks.

Author

MarkusTieger

Since

0.2.0

Properties

Link copied to clipboard
var Player.backpackInventory: Inventory?

A field for accessing the backpack inventory of a player.

Link copied to clipboard
var Player.backpackState: Int

A field for accessing the backpack state of a player.

Functions

Link copied to clipboard
fun Player.loadBackpack()

Loads the backpack of a player.

Link copied to clipboard
fun Player.saveBackpack()

Saves the backpack of a player.