plugin

package
v0.0.0-...-ca992e9 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CHANNEL_BRAND           = "minecraft:brand"
	CHANNEL_DEBUG_PATHS     = "minecraft:debug/paths"
	CHANNEL_DEBUG_NEIGHBORS = "minecraft:debug/neighbors_update"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Brand

type Brand struct {
	Name string
}

func (*Brand) Chan

func (b *Brand) Chan() string

func (*Brand) Pull

func (b *Brand) Pull(reader buff.Buffer)

func (*Brand) Push

func (b *Brand) Push(writer buff.Buffer)

type DebugNeighbors

type DebugNeighbors struct {
	Time     int64
	Location data.PositionI
}

func (*DebugNeighbors) Chan

func (d *DebugNeighbors) Chan() string

func (*DebugNeighbors) Pull

func (d *DebugNeighbors) Pull(reader buff.Buffer)

func (*DebugNeighbors) Push

func (d *DebugNeighbors) Push(writer buff.Buffer)

type DebugPaths

type DebugPaths struct {
	UnknownValue1 int32
	UnknownValue2 float32
	PathEntity    PathEntity
}

func (*DebugPaths) Chan

func (d *DebugPaths) Chan() string

func (*DebugPaths) Pull

func (d *DebugPaths) Pull(reader buff.Buffer)

func (*DebugPaths) Push

func (d *DebugPaths) Push(writer buff.Buffer)

type Message

type Message interface {
	Chan() string

	buff.BufferPush
	buff.BufferPull
}

func GetMessageForChannel

func GetMessageForChannel(channel string) Message

type MessageRegistry

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

type NodeType

type NodeType int
const (
	BLOCKED NodeType = iota
	OPEN
	WALKABLE
	TRAPDOOR
	FENCE
	LAVA
	WATER
	RAIL
	DANGER_FIRE
	DAMAGE_FIRE
	DANGER_CACTUS
	DAMAGE_CACTUS
	DANGER_OTHER
	DAMAGE_OTHER
	DOOR_OPEN
	DOOR_WOOD_CLOSED
	DOOR_IRON_CLOSED
)

type PathEntity

type PathEntity struct {
	Index   int
	Target  PathPoint
	PSetLen int
	PSet    []PathPoint
	OSetLen int
	OSet    []PathPoint
	CSetLen int
	CSet    []PathPoint
}

func (*PathEntity) Pull

func (p *PathEntity) Pull(reader buff.Buffer)

func (*PathEntity) Push

func (p *PathEntity) Push(writer buff.Buffer)

type PathPoint

type PathPoint struct {
	X int32
	Y int32
	Z int32

	DistanceOrigin float32
	Cost           float32
	CostMalus      float32
	Visited        bool
	NodeType       NodeType
	DistanceTarget float32
}

func (*PathPoint) Pull

func (p *PathPoint) Pull(reader buff.Buffer)

func (*PathPoint) Push

func (p *PathPoint) Push(writer buff.Buffer)

Jump to

Keyboard shortcuts

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