Versions in this module Expand all Collapse all v0 v0.0.4 Jan 4, 2021 Changes in this version + const CameraShakePositional + const CameraShakeRotational + var ErrSelfRuntimeID = errors.New("invalid entity runtime ID: runtime ID for self must always be 1") + var Nop = &Session + type BlockPickRequestHandler struct + func (b BlockPickRequestHandler) Handle(p packet.Packet, s *Session) error + type CameraShakeType uint8 + type ClientCacheBlobStatusHandler struct + func (c *ClientCacheBlobStatusHandler) Handle(p packet.Packet, s *Session) error + type CommandRequestHandler struct + func (h *CommandRequestHandler) Handle(p packet.Packet, s *Session) error + type ContainerCloseHandler struct + func (h *ContainerCloseHandler) Handle(p packet.Packet, s *Session) error + type Controllable interface + AbortBreaking func() + AttackEntity func(e world.Entity) + BreakBlock func(pos world.BlockPos) + Chat func(msg ...interface{}) + ContinueBreaking func(face world.Face) + Drop func(s item.Stack) (n int) + ExecuteCommand func(commandLine string) + Exhaust func(points float64) + EyeHeight func() float64 + FinishBreaking func() + GameMode func() gamemode.GameMode + Move func(deltaPos mgl64.Vec3) + PickBlock func(pos world.BlockPos) + ReleaseItem func() + Respawn func() + Rotate func(deltaYaw, deltaPitch float64) + SetGameMode func(mode gamemode.GameMode) + SetHeldItems func(right, left item.Stack) + Skin func() skin.Skin + Sneaking func() bool + Speed func() float64 + Sprinting func() bool + StartBreaking func(pos world.BlockPos, face world.Face) + StartSneaking func() + StartSprinting func() + StartSwimming func() + StopSneaking func() + StopSprinting func() + StopSwimming func() + Swimming func() bool + UUID func() uuid.UUID + UseItem func() + UseItemOnBlock func(pos world.BlockPos, face world.Face, clickPos mgl64.Vec3) + UseItemOnEntity func(e world.Entity) + XUID func() string + type EmoteHandler struct + LastEmote time.Time + func (h *EmoteHandler) Handle(p packet.Packet, s *Session) error + type InteractHandler struct + func (h *InteractHandler) Handle(p packet.Packet, s *Session) error + type InventoryTransactionHandler struct + func (h *InventoryTransactionHandler) Handle(p packet.Packet, s *Session) error + type ItemStackRequestHandler struct + func (h *ItemStackRequestHandler) Handle(p packet.Packet, s *Session) error + type MobEquipmentHandler struct + func (*MobEquipmentHandler) Handle(p packet.Packet, s *Session) error + type ModalFormResponseHandler struct + func (h *ModalFormResponseHandler) Handle(p packet.Packet, s *Session) error + type PlayerActionHandler struct + func (*PlayerActionHandler) Handle(p packet.Packet, s *Session) error + type PlayerAuthInputHandler struct + func (h PlayerAuthInputHandler) Handle(p packet.Packet, s *Session) error + type RequestChunkRadiusHandler struct + func (*RequestChunkRadiusHandler) Handle(p packet.Packet, s *Session) error + type RespawnHandler struct + func (*RespawnHandler) Handle(p packet.Packet, s *Session) error + type Session struct + func New(conn *minecraft.Conn, maxChunkRadius int, log *logrus.Logger, ...) *Session + func (s *Session) ClientData() login.ClientData + func (s *Session) Close() error + func (s *Session) CloseConnection() + func (s *Session) Disconnect(message string) + func (s *Session) EnableCoordinates(enable bool) + func (s *Session) HandleInventories() (inv, offHand *inventory.Inventory, armour *inventory.Armour, ...) + func (s *Session) HideEntity(e world.Entity) + func (s *Session) Latency() time.Duration + func (s *Session) OpenBlockContainer(pos world.BlockPos) + func (s *Session) Position() mgl64.Vec3 + func (s *Session) RemoveBossBar() + func (s *Session) RemoveScoreboard() + func (s *Session) SendAbsorption(value float64) + func (s *Session) SendActionBarMessage(text string) + func (s *Session) SendAnnouncement(message string) + func (s *Session) SendAvailableCommands() + func (s *Session) SendBossBar(text string, healthPercentage float64) + func (s *Session) SendCameraShake(Intensity, Duration float32, Type CameraShakeType) + func (s *Session) SendCommandOutput(output *cmd.Output) + func (s *Session) SendEffect(e effect.Effect) + func (s *Session) SendEffectRemoval(e effect.Effect) + func (s *Session) SendFood(food int, saturation, exhaustion float64) + func (s *Session) SendForm(f form.Form) + func (s *Session) SendGameMode(mode gamemode.GameMode) + func (s *Session) SendHealth(health *entity_internal.HealthManager) + func (s *Session) SendJukeboxPopup(message string) + func (s *Session) SendMessage(message string) + func (s *Session) SendPopup(message string) + func (s *Session) SendRespawn() + func (s *Session) SendScoreboard(displayName string) + func (s *Session) SendScoreboardLines(v []string) + func (s *Session) SendSpeed(speed float64) + func (s *Session) SendSubtitle(text string) + func (s *Session) SendTip(message string) + func (s *Session) SendTitle(text string) + func (s *Session) SendVelocity(velocity mgl64.Vec3) + func (s *Session) SetHeldSlot(slot int) error + func (s *Session) SetTitleDurations(fadeInDuration, remainDuration, fadeOutDuration time.Duration) + func (s *Session) Start(c Controllable, w *world.World, onStop func(controllable Controllable)) + func (s *Session) Transfer(ip net.IP, port int) + func (s *Session) ViewBlockAction(pos world.BlockPos, a blockAction.Action) + func (s *Session) ViewBlockUpdate(pos world.BlockPos, b world.Block, layer int) + func (s *Session) ViewChunk(pos world.ChunkPos, c *chunk.Chunk, ...) + func (s *Session) ViewEmote(player world.Entity, emote uuid.UUID) + func (s *Session) ViewEntity(e world.Entity) + func (s *Session) ViewEntityAction(e world.Entity, a action.Action) + func (s *Session) ViewEntityArmour(e world.Entity) + func (s *Session) ViewEntityItems(e world.Entity) + func (s *Session) ViewEntityMovement(e world.Entity, deltaPos mgl64.Vec3, deltaYaw, deltaPitch float64) + func (s *Session) ViewEntityState(e world.Entity, states []state.State) + func (s *Session) ViewEntityTeleport(e world.Entity, position mgl64.Vec3) + func (s *Session) ViewEntityVelocity(e world.Entity, velocity mgl64.Vec3) + func (s *Session) ViewParticle(pos mgl64.Vec3, p world.Particle) + func (s *Session) ViewSlotChange(slot int, newItem item.Stack) + func (s *Session) ViewSound(pos mgl64.Vec3, soundType world.Sound) + func (s *Session) ViewTime(time int) + type TextHandler struct + func (TextHandler) Handle(p packet.Packet, s *Session) error