Documentation ¶
Index ¶
Constants ¶
View Source
const API_KEY = "b4chnoWQeR1pBtmDxslcTaReIdThofpR8QiUkiQ6"
public free use key
View Source
const CROSSANGLE_EXPERIMENT = true
View Source
const MAX_EYE_ANGLE = 0.85
View Source
const SELECTION_EFFECT = true
View Source
const SELECTION_METHOD = "closest" // or "highest"
Variables ¶
View Source
var DEBUG = false
View Source
var HyperSet = LayerSet{ Code: "hyper", AnglePref: radsFromDegs(0.01), RingMod: 0, AverageDistance: 0.5, MathFactor: 4, Weights: [3]int{100, 5, 100}, ClusterWeight: 150, }
View Source
var OneEyeSet = LayerSet{ Code: "educated", AnglePref: radsFromDegs(0.005), RingMod: 100, AverageDistance: 0.61, MathFactor: 440, Weights: [3]int{40, 100, 0}, ClusterWeight: 180, }
View Source
var TwoEyeSet = LayerSet{ Code: "triangulation", AnglePref: radsFromDegs(0.06), RingMod: 150, AverageDistance: 0.5, MathFactor: 38, Weights: [3]int{20, 10, 100}, ClusterWeight: 180, }
View Source
var ZeroEyeSet = LayerSet{ Code: "blind", AnglePref: radsFromDegs(0.08), RingMod: 33, AverageDistance: 0.22, Weights: [3]int{20, 100, 0}, ClusterWeight: 150, }
Functions ¶
Types ¶
type Chunk ¶
type Chunk [2]int
var DEBUG_CHUNK Chunk
func ChunkFromCenter ¶
func ChunkFromPosition ¶
func ClosestStronghold ¶
func GenStrongholds ¶
func (Chunk) Selectable ¶
type Guess ¶
type LayerSet ¶
type Response ¶
type Response struct { Chunk *[2]int `json:"chunk"` Coords *[2]int `json:"coords"` Player *[2]int `json:"player"` Portal *[2]int `json:"portal"` Method string `json:"method"` Confidence int `json:"confidence"` Keep []string `json:"keep"` }
func NewResponse ¶
func PostRequest ¶
type ScoredChunk ¶
func (ScoredChunk) Distance ¶
func (c ScoredChunk) Distance(other interface{}) float64
func (ScoredChunk) GetID ¶
func (c ScoredChunk) GetID() string
type Session ¶
type Session struct { Throws []Throw CustomLayer *LayerSet LayerSet LayerSet Scores map[Chunk]int TotalScore int Options struct { Hyper bool } }
func NewSession ¶
func (*Session) CalcLayerSet ¶
type Throw ¶
func NewBlindThrow ¶
func NewThrowFromArray ¶
func NewThrowFromString ¶
/execute in minecraft:overworld run tp @s -214.79 104.61 386.16 76.50 -32.40
Click to show internal directories.
Click to hide internal directories.