playerdb

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InventoryData

type InventoryData struct {
	Items []item.Stack

	Boots      item.Stack
	Leggings   item.Stack
	Chestplate item.Stack
	Helmet     item.Stack

	OffHand item.Stack

	MainHandSlot uint32
}

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider(path string) (*Provider, error)

func (*Provider) Close

func (p *Provider) Close() error

func (*Provider) Load

func (p *Provider) Load(id uuid.UUID, world func(world.Dimension) *world.World) (player.Config, *world.World, error)

func (*Provider) Save

func (p *Provider) Save(id uuid.UUID, d player.Config, w *world.World) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL