-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathoutputs.go
More file actions
76 lines (69 loc) · 2.2 KB
/
outputs.go
File metadata and controls
76 lines (69 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
package wrapper
// DataGetOutput represents the structured data logged from the
// '/data get entity' command. Some fields might not be of the
// right or precise type since the decoder will coerse any value
// to either a string, int or float64 for simplicity.
type DataGetOutput struct {
Brain Brain
HurtByTimestamp int
SleepTimer int
SpawnForced int
Attributes []Attribute
Invulnerable int
FallFlying int
PortalCooldown int
AbsorptionAmount float64
Abilities Abilities
FallDistance float64
RecipeBook RecipeBook
DeathTime int
XpSeed int
XpTotal int
UUID []interface{} // Technically []int, cc issue in decoder.go#Lexer.buildStr()
PlayerGameType int
SeenCredits int
Motion []float64
Health float64
FoodSaturationLevel float64
Air int
OnGround int
Dimension string
Rotation []float64
XpLevel int
Score int
Pos []float64
PreviousPlayerGameType int
Fire int
XpP float64
EnderItems []interface{}
DataVersion int
FoodLevel int
FoodExhaustionLevel float64
HurtTime int // TODO: support native time.Time?
SelectedItemSlot int
Inventory Inventory
FoodTickTimer int
}
type Brain map[string]map[string]interface{}
type Attribute struct {
Name string
Base float64
}
type Abilities map[string]float64
type Inventory []map[string]interface{}
type RecipeBook struct {
Recipes []string
ToBeDisplayed []string
IsBlastingFurnaceFilteringCraftable int
IsSmokerGuiOpen int
IsFilteringCraftable int
IsFurnaceGuiOpen int
IsGuiOpen int
IsFurnaceFilteringCraftable int
IsBlastingFurnaceGuiOpen int
IsSmokerFilteringCraftable int
}
type Player struct {
Name string
UUID string
}