inv

package
v1.16.5-pre2-vacpp Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package inv maps window types to inventory slot information.

Index

Constants

This section is empty.

Variables

View Source
var ByType = map[int]Info{
	-1: {Name: "inventory", Start: 9, End: 44, Slots: 46},
	0:  {Name: "generic_9x1", Start: 1 * 9, End: 1*9 + 35, Slots: 1*9 + 36},
	1:  {Name: "generic_9x2", Start: 2 * 9, End: 2*9 + 35, Slots: 2*9 + 36},
	2:  {Name: "generic_9x3", Start: 3 * 9, End: 3*9 + 35, Slots: 3*9 + 36},
	3:  {Name: "generic_9x4", Start: 4 * 9, End: 4*9 + 35, Slots: 4*9 + 36},
	4:  {Name: "generic_9x5", Start: 5 * 9, End: 5*9 + 35, Slots: 5*9 + 36},
	5:  {Name: "generic_9x6", Start: 6 * 9, End: 6*9 + 35, Slots: 6*9 + 36},
}

Functions

This section is empty.

Types

type Info

type Info struct {
	Name       string
	Start, End int // Player inventory
	Slots      int
}

func (Info) HotbarIdx

func (i Info) HotbarIdx(place int) int

func (Info) PlayerInvEnd

func (i Info) PlayerInvEnd() int

func (Info) PlayerInvStart

func (i Info) PlayerInvStart() int

Jump to

Keyboard shortcuts

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