enums

package
v0.0.0-...-18e7427 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Gravity              = 0.08
	SlowFallGravity      = 0.01
	AirDrag              = 0.98
	YawSpeed             = 3.0
	PitchSpeed           = 3.0
	PlayerSpeed          = 0.1
	SprintSpeed          = 0.3
	SneakSpeed           = 0.3
	StepHeight           = 0.6
	NegligibleVelocity   = 0.003
	SoulSandMultiplier   = 0.4
	HoneyBlockMultiplier = 0.4
	LadderMaxSpeed       = 0.15
	LadderAcceleration   = 0.2
	WaterDrag            = 0.8
	WaterSprintDrag      = 0.9
	WaterDolphinDrag     = 0.96
	LavaDrag             = 0.5
	WaterGravity         = 0.02
	LavaGravity          = 0.02
	LiquidAcceleration   = 0.02
	AirBornInertia       = 0.91
	AirBornAcceleration  = 0.02
	DefaultSlipperiness  = 0.6
	OutOfLiquidImpulse   = 0.3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DamageSource

type DamageSource int
const (
	None DamageSource = iota - 1
	Anvil
	Cactus
	Cramming
	DragonBreath
	Drowning
	Fall
	FallingBlock
	Fireworks
	FlyIntoWall
	Generic
	HotFloor
	InFire
	InWall
	Lava
	LightningBolt
	Magic
	OnFire
	OutOfWorld
	Starve
	Wither
)

type GameType

type GameType uint8
const (
	Survival GameType = iota
	Creative
	Adventure
	Spectator
)

func (GameType) String

func (g GameType) String() string

type Hand

type Hand int
const (
	MainHand Hand = iota
	OffHand
)

type MoverType

type MoverType int

MoverType is the type of the entity's movement.

const (
	MoverTypeSelf MoverType = iota
	MoverTypePlayer
	MoverTypePiston
	MoverTypeShulkerBox
	MoverTypeShulker
)

type PlayerAction

type PlayerAction int
const (
	PressShiftKey PlayerAction = iota
	ReleaseShiftKey
	StopSleeping
	StartSprinting
	StopSprinting
	StartJumpWithHorse
	StopJumpWithHorse
	OpenHorseInventory
	StartFlyingWithElytra
)

Jump to

Keyboard shortcuts

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