Documentation ¶
Index ¶
- func AddGadget(inv *inventory.Inventory)
- type Data
- type Gadget
- type GameMode
- type InvHandler
- type Marker
- type Provider
- type Session
- func (s *Session) Addr() net.Addr
- func (s *Session) Data() *Data
- func (s *Session) HandleFoodLoss(ctx *event.Context, _ int, _ *int)
- func (s *Session) HandleItemDrop(ctx *event.Context, _ *entity.Item)
- func (s *Session) HandleItemPickup(ctx *event.Context, _ item.Stack)
- func (s *Session) HandleItemUseOnBlock(ctx *event.Context, pos cube.Pos, _ cube.Face, _ mgl64.Vec3)
- func (s *Session) HandleMove(ctx *event.Context, newPos mgl64.Vec3, _ float64, _ float64)
- func (s *Session) HandleQuit()
- func (s *Session) Hex() string
- func (s *Session) Inventory() *inventory.Inventory
- func (s *Session) Local() bool
- func (s *Session) Marker(name string) Marker
- func (s *Session) Markers() map[string]Marker
- func (s *Session) Message(a ...any)
- func (s *Session) Messagef(f string, a ...any)
- func (s *Session) Player() *player.Player
- func (s *Session) RemMarker(name string)
- func (s *Session) RemoveScoreboard()
- func (s *Session) Room() cube.Pos
- func (s *Session) SendForm(f form.Form)
- func (s *Session) SendFormF(f func(ses *Session) form.Form)
- func (s *Session) SendScoreboard(scb *scoreboard.Scoreboard)
- func (s *Session) Server() *server.Server
- func (s *Session) SetData(dat *Data)
- func (s *Session) SetHex(new string)
- func (s *Session) SetMarker(name string, mar Marker)
- func (s *Session) SetRoom(new cube.Pos)
- func (s *Session) Teleport(pos mgl64.Vec3)
- func (s *Session) TeleportRoom(pos cube.Pos)
- func (s *Session) UUID() uuid.UUID
- func (s *Session) World() *world.World
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GameMode ¶
type GameMode struct{}
func (GameMode) AllowsEditing ¶
func (GameMode) AllowsFlying ¶
func (GameMode) AllowsInteraction ¶
func (GameMode) AllowsTakingDamage ¶
func (GameMode) CreativeInventory ¶
func (GameMode) HasCollision ¶
type InvHandler ¶
type InvHandler struct { inventory.NopHandler // contains filtered or unexported fields }
func (InvHandler) HandleDrop ¶
func (InvHandler) HandleTake ¶
type Marker ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
type Session ¶
type Session struct { player.NopHandler // contains filtered or unexported fields }
func (*Session) HandleFoodLoss ¶
func (*Session) HandleItemDrop ¶
func (*Session) HandleItemPickup ¶
func (*Session) HandleItemUseOnBlock ¶
func (*Session) HandleMove ¶
func (*Session) HandleQuit ¶
func (s *Session) HandleQuit()
func (*Session) RemoveScoreboard ¶
func (s *Session) RemoveScoreboard()
func (*Session) SendScoreboard ¶
func (s *Session) SendScoreboard(scb *scoreboard.Scoreboard)
func (*Session) TeleportRoom ¶
Click to show internal directories.
Click to hide internal directories.