Versions in this module Expand all Collapse all v0 v0.0.4 Jan 4, 2021 Changes in this version + type Handler interface + HandleAttackEntity func(ctx *event.Context, e world.Entity) + HandleBlockBreak func(ctx *event.Context, pos world.BlockPos) + HandleBlockPick func(ctx *event.Context, pos world.BlockPos, b world.Block) + HandleBlockPlace func(ctx *event.Context, pos world.BlockPos, b world.Block) + HandleChat func(ctx *event.Context, message *string) + HandleCommandExecution func(ctx *event.Context, command cmd.Command, args []string) + HandleDeath func(src damage.Source) + HandleFoodLoss func(ctx *event.Context, from, to int) + HandleHeal func(ctx *event.Context, health *float64, src healing.Source) + HandleHurt func(ctx *event.Context, damage *float64, src damage.Source) + HandleItemDamage func(ctx *event.Context, i item.Stack, damage int) + HandleItemDrop func(ctx *event.Context, e *entity.Item) + HandleItemPickup func(ctx *event.Context, i item.Stack) + HandleItemUse func(ctx *event.Context) + HandleItemUseOnBlock func(ctx *event.Context, pos world.BlockPos, face world.Face, clickPos mgl64.Vec3) + HandleItemUseOnEntity func(ctx *event.Context, e world.Entity) + HandleMove func(ctx *event.Context, newPos mgl64.Vec3, newYaw, newPitch float64) + HandleQuit func() + HandleRespawn func(pos *mgl64.Vec3) + HandleStartBreak func(ctx *event.Context, pos world.BlockPos) + HandleTeleport func(ctx *event.Context, pos mgl64.Vec3) + HandleTransfer func(ctx *event.Context, addr *net.UDPAddr) + type NopHandler struct + func (NopHandler) HandleAttackEntity(*event.Context, world.Entity) + func (NopHandler) HandleBlockBreak(*event.Context, world.BlockPos) + func (NopHandler) HandleBlockPick(ctx *event.Context, pos world.BlockPos, b world.Block) + func (NopHandler) HandleBlockPlace(*event.Context, world.BlockPos, world.Block) + func (NopHandler) HandleChat(*event.Context, *string) + func (NopHandler) HandleCommandExecution(*event.Context, cmd.Command, []string) + func (NopHandler) HandleDeath(damage.Source) + func (NopHandler) HandleFoodLoss(*event.Context, int, int) + func (NopHandler) HandleHeal(*event.Context, *float64, healing.Source) + func (NopHandler) HandleHurt(*event.Context, *float64, damage.Source) + func (NopHandler) HandleItemDamage(*event.Context, item.Stack, int) + func (NopHandler) HandleItemDrop(*event.Context, *entity.Item) + func (NopHandler) HandleItemPickup(*event.Context, item.Stack) + func (NopHandler) HandleItemUse(*event.Context) + func (NopHandler) HandleItemUseOnBlock(*event.Context, world.BlockPos, world.Face, mgl64.Vec3) + func (NopHandler) HandleItemUseOnEntity(*event.Context, world.Entity) + func (NopHandler) HandleMove(*event.Context, mgl64.Vec3, float64, float64) + func (NopHandler) HandleQuit() + func (NopHandler) HandleRespawn(*mgl64.Vec3) + func (NopHandler) HandleStartBreak(*event.Context, world.BlockPos) + func (NopHandler) HandleTeleport(*event.Context, mgl64.Vec3) + func (NopHandler) HandleTransfer(*event.Context, *net.UDPAddr) + type Player struct + func New(name string, skin skin.Skin, pos mgl64.Vec3) *Player + func NewWithSession(name, xuid string, uuid uuid.UUID, skin skin.Skin, s *session.Session, ...) *Player + func (*Player) BeaconAffected() bool + func (p *Player) AABB() physics.AABB + func (p *Player) AbortBreaking() + func (p *Player) AddEffect(e effect.Effect) + func (p *Player) AddFood(points int) + func (p *Player) Armour() item.ArmourContainer + func (p *Player) AttackEntity(e world.Entity) + func (p *Player) AttackImmune() bool + func (p *Player) BreakBlock(pos world.BlockPos) + func (p *Player) Chat(msg ...interface{}) + func (p *Player) Close() error + func (p *Player) Collect(s item.Stack) (n int) + func (p *Player) ContinueBreaking(face world.Face) + func (p *Player) Dead() bool + func (p *Player) Disconnect(msg ...interface{}) + func (p *Player) Drop(s item.Stack) (n int) + func (p *Player) Effects() []effect.Effect + func (p *Player) EncodeEntity() string + func (p *Player) ExecuteCommand(commandLine string) + func (p *Player) Exhaust(points float64) + func (p *Player) Extinguish() + func (p *Player) EyeHeight() float64 + func (p *Player) Facing() world.Direction + func (p *Player) FinalDamageFrom(dmg float64, src damage.Source) float64 + func (p *Player) FinishBreaking() + func (p *Player) FireProof() bool + func (p *Player) Food() int + func (p *Player) GameMode() gamemode.GameMode + func (p *Player) Handle(h Handler) + func (p *Player) Heal(health float64, source healing.Source) + func (p *Player) Health() float64 + func (p *Player) HeldItems() (mainHand, offHand item.Stack) + func (p *Player) HideCoordinates() + func (p *Player) Hurt(dmg float64, source damage.Source) + func (p *Player) Inventory() *inventory.Inventory + func (p *Player) KnockBack(src mgl64.Vec3, force, height float64) + func (p *Player) Latency() time.Duration + func (p *Player) Locale() language.Tag + func (p *Player) MaxHealth() float64 + func (p *Player) Message(a ...interface{}) + func (p *Player) Messagef(f string, a ...interface{}) + func (p *Player) Move(deltaPos mgl64.Vec3) + func (p *Player) Name() string + func (p *Player) OnFireDuration() time.Duration + func (p *Player) OnGround() bool + func (p *Player) OpenBlockContainer(pos world.BlockPos) + func (p *Player) PickBlock(pos world.BlockPos) + func (p *Player) Pitch() float64 + func (p *Player) PlaceBlock(pos world.BlockPos, b world.Block, ctx *item.UseContext) + func (p *Player) PlaySound(sound world.Sound) + func (p *Player) Position() mgl64.Vec3 + func (p *Player) ReleaseItem() + func (p *Player) RemoveBossBar() + func (p *Player) RemoveEffect(e effect.Effect) + func (p *Player) RemoveScoreboard() + func (p *Player) Respawn() + func (p *Player) Rotate(deltaYaw, deltaPitch float64) + func (p *Player) Saturate(food int, saturation float64) + func (p *Player) Scale() float64 + func (p *Player) SendBossBar(bar bossbar.BossBar) + func (p *Player) SendCommandOutput(output *cmd.Output) + func (p *Player) SendForm(f form.Form) + func (p *Player) SendPopup(a ...interface{}) + func (p *Player) SendScoreboard(scoreboard *scoreboard.Scoreboard) + func (p *Player) SendTip(a ...interface{}) + func (p *Player) SendTitle(t title.Title) + func (p *Player) SetAbsorption(health float64) + func (p *Player) SetFood(level int) + func (p *Player) SetGameMode(mode gamemode.GameMode) + func (p *Player) SetHeldItems(mainHand, offHand item.Stack) + func (p *Player) SetImmobile() + func (p *Player) SetInvisible() + func (p *Player) SetMaxHealth(health float64) + func (p *Player) SetMobile() + func (p *Player) SetNameTag(name string) + func (p *Player) SetOnFire(duration time.Duration) + func (p *Player) SetScale(s float64) + func (p *Player) SetSpeed(speed float64) + func (p *Player) SetVelocity(v mgl64.Vec3) + func (p *Player) SetVisible() + func (p *Player) ShowCoordinates() + func (p *Player) Skin() skin.Skin + func (p *Player) Sneaking() bool + func (p *Player) Speed() float64 + func (p *Player) Sprinting() bool + func (p *Player) StartBreaking(pos world.BlockPos, face world.Face) + func (p *Player) StartSneaking() + func (p *Player) StartSprinting() + func (p *Player) StartSwimming() + func (p *Player) State() (s []state.State) + func (p *Player) StopSneaking() + func (p *Player) StopSprinting() + func (p *Player) StopSwimming() + func (p *Player) Swimming() bool + func (p *Player) Teleport(pos mgl64.Vec3) + func (p *Player) Tick(current int64) + func (p *Player) Transfer(address string) (err error) + func (p *Player) UUID() uuid.UUID + func (p *Player) UseItem() + func (p *Player) UseItemOnBlock(pos world.BlockPos, face world.Face, clickPos mgl64.Vec3) + func (p *Player) UseItemOnEntity(e world.Entity) + func (p *Player) Velocity() mgl64.Vec3 + func (p *Player) World() *world.World + func (p *Player) XUID() string + func (p *Player) Yaw() float64