Documentation
¶
Index ¶
- type GameProfile
- type LpVec3
- type PartialProfile
- type Position
- func (p Position) Add(other Position) Position
- func (p Position) Clone() Position
- func (p Position) DistanceTo(other Position) float64
- func (p Position) DistanceToSquared(other Position) float64
- func (p Position) Div(scalar float64) Position
- func (p Position) Equals(other Position) bool
- func (p Position) IsZero() bool
- func (p Position) Mul(scalar float64) Position
- func (p Position) String() string
- func (p Position) Sub(other Position) Position
- type ResolvableProfile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GameProfile ¶
type LpVec3 ¶
type LpVec3 struct {
X, Y, Z float64
}
type PartialProfile ¶
type PartialProfile struct {
Username pk.Option[pk.String, *pk.String]
UUID pk.Option[pk.UUID, *pk.UUID]
Properties []user.Property
}
type Position ¶
type Position [3]int32
func (Position) DistanceTo ¶
func (Position) DistanceToSquared ¶
type ResolvableProfile ¶
type ResolvableProfile struct {
Type int32 `mc:"VarInt"`
//opt:enum:Type:0
Partial *PartialProfile
//opt:enum:Type:1
GameProfile *ResolvableProfile
Body pk.Option[pk.Identifier, *pk.Identifier]
Cape pk.Option[pk.Identifier, *pk.Identifier]
Elytra pk.Option[pk.Identifier, *pk.Identifier]
Model pk.Option[pk.VarInt, *pk.VarInt]
}
Click to show internal directories.
Click to hide internal directories.