util

package
v0.0.0-...-2f9bf8d Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalibratePos

func CalibratePos(g *bot.Game)

CalibratePos moves player to the centre of block and fall player on the ground

func NonSolid

func NonSolid(bs string) bool

NonSolid 测试方块是否可以被穿过

func TweenJump

func TweenJump(g *bot.Game)

TweenJump simulate player jump make no headway

func TweenJumpTo

func TweenJumpTo(g *bot.Game, x, z int)

TweenJumpTo simulate player jump up a block

func TweenLineMove

func TweenLineMove(g *bot.Game, x, z float64) error

TweenLineMove allows you smoothly move on plane. You can't move in Y axis

func TweenLook

func TweenLook(g *bot.Game, yaw, pitch float32, t time.Duration)

TweenLook do tween animation at player's head.

func TweenLookAt

func TweenLookAt(g *bot.Game, x, y, z float64, t time.Duration)

TweenLookAt is the Tween version of LookAt

Types

This section is empty.

Jump to

Keyboard shortcuts

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