player

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GameMode

type GameMode byte
const (
	SURVIVAL GameMode = iota
	CREATIVE
	ADVENTURE
	SPECTATOR
)

type HotBarSlot

type HotBarSlot byte
const (
	SLOT_0 HotBarSlot = iota
	SLOT_1
	SLOT_2
	SLOT_3
	SLOT_4
	SLOT_5
	SLOT_6
	SLOT_7
	SLOT_8
)

type PlayerAbilities

type PlayerAbilities struct {
	masks.Masking

	Invulnerable bool
	Flying       bool
	AllowFlight  bool
	InstantBuild bool
}

func (*PlayerAbilities) Pull

func (p *PlayerAbilities) Pull(reader network.Buffer)

func (*PlayerAbilities) Push

func (p *PlayerAbilities) Push(writer network.Buffer)

type Profile

type Profile struct {
	UUID data.UUID
	Name string

	Properties []*ProfileProperty
}

type ProfileProperty

type ProfileProperty struct {
	Name      string
	Value     string
	Signature *string
}

type SkinParts

type SkinParts struct {
	mask.Masking
	Cape bool
	Head bool
	Body bool
	ArmL bool
	ArmR bool
	LegL bool
	LegR bool
}

func (*SkinParts) Pull

func (d *SkinParts) Pull(reader network.Buffer)

func (*SkinParts) Push

func (d *SkinParts) Push(writer network.Buffer)

func (*SkinParts) String

func (d *SkinParts) String() string

Jump to

Keyboard shortcuts

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