Versions in this module Expand all Collapse all v0 v0.0.1 Jun 8, 2022 Changes in this version + const MaxLight + const SunLight + var DefaultMinimap = []MinimapMode + var ErrTooLong = errors.New("len too long") + func Blkpos2Pos(blkpos [3]int16, i uint16) (pos [3]int16) + func BuiltinNodeDefs(n int) map[Content]NodeDef + func Pos2Blkpos(pos [3]int16) (blkpos [3]int16, i uint16) + type AOAdd struct + ID AOID + InitData AOInitData + type AOAnim struct + Blend float32 + Frames [2]int32 + NoLoop bool + Speed float32 + type AOAttach struct + Bone string + ForceVisible bool + ParentID AOID + Pos Vec + Rot [3]float32 + type AOBonePos struct + Pos Vec + Rot [3]float32 + type AOCmdAnim struct + Anim AOAnim + type AOCmdAnimSpeed struct + Speed float32 + type AOCmdArmorGroups struct + Armor []Group + type AOCmdAttach struct + Attach AOAttach + type AOCmdBonePos struct + Bone string + Pos AOBonePos + type AOCmdHP struct + HP uint16 + type AOCmdPhysOverride struct + Phys AOPhysOverride + type AOCmdPos struct + Pos AOPos + type AOCmdProps struct + Props AOProps + type AOCmdSpawnInfant struct + ID AOID + type AOCmdSprite struct + Sprite AOSprite + type AOCmdTextureMod struct + Mod Texture + type AOID uint16 + type AOInitData struct + HP uint16 + ID AOID + IsPlayer bool + Msgs []AOMsg + Name string + Rot [3]float32 + type AOMsg interface + type AOPhysOverride struct + Gravity float32 + Jump float32 + NoSneak bool + NoSneakGlitch bool + OldSneak bool + Walk float32 + type AOPos struct + Acc Vec + End bool + Interpolate bool + Rot [3]float32 + UpdateInterval float32 + Vel Vec + type AOProps struct + BackfaceCull bool + ColBox Box + CollideWithAOs bool + CollideWithNodes bool + Colors []color.NRGBA + DmgTextureMod Texture + EyeHeight float32 + FaceRotateDir bool + FaceRotateDirOff float32 + FaceRotateSpeed float32 + Glow int8 + Infotext string + Itemstring string + MakeFootstepSnds bool + MaxBreath uint16 + MaxHP uint16 + Mesh string + Nametag string + NametagBG color.NRGBA + NametagColor color.NRGBA + Pointable bool + RotateSpeed float32 + SelBox Box + Shaded bool + ShowOnMinimap bool + SpritePos [2]int16 + SpriteSheetSize [2]int16 + StepHeight float32 + Textures []Texture + UseTextureAlpha bool + Visible bool + Visual string + VisualSize [3]float32 + Weight float32 + ZoomFOV float32 + type AOSprite struct + Frame0 [2]int16 + FrameDuration float32 + Frames uint16 + ViewAngleFrames bool + type AlignType uint8 + const NoAlign + const UserAlign + const WorldAlign + func (i AlignType) String() string + type AlphaUse uint8 + const Blend + const Legacy + const Mask + const Opaque + func (i AlphaUse) String() string + type AnimType uint8 + const NoAnim + const SpriteSheetAnim + const VerticalFrameAnim + func (i AnimType) String() string + type AuthMethods uint32 + const FirstSRP + const LegacyPasswd + const SRP + func (i AuthMethods) String() string + type Box [2]Vec + type CSMRestrictionFlags uint64 + const LimitMapRange + const NoCSMs + const NoChatMsgs + const NoItemDefs + const NoNodeDefs + const NoPlayerList + type ChatMsgType uint8 + const AnnounceMsg + const NormalMsg + const RawMsg + const SysMsg + func (i ChatMsgType) String() string + type Cmd interface + DefaultPktInfo func() rudp.PktInfo + type CompressionModes uint16 + type Content uint16 + const Air + const Ignore + const Unknown + type DigTime struct + Rating int16 + Time float32 + type Dir uint8 + const Above + const Below + const East + const NoDir + const North + const South + const West + func (d Dir) Opposite() Dir + func (i Dir) String() string + type DirBoxes struct + Back []Box + Bot []Box + Front []Box + Left []Box + Right []Box + Top []Box + type DrawType uint8 + const DrawAllFaces + const DrawAllFacesOpt + const DrawCube + const DrawFence + const DrawFire + const DrawFlowing + const DrawGlassFrame + const DrawGlassFrameOpt + const DrawLikeGlass + const DrawLiquid + const DrawMesh + const DrawNodeBox + const DrawNothing + const DrawPlant + const DrawRail + const DrawRootedPlant + const DrawSign + const DrawTorch + func (i DrawType) String() string + type Field struct + Name string + Value string + type Group struct + Name string + Rating int16 + type HUD struct + Align [2]float32 + Dir uint32 + Item uint32 + Name string + Number uint32 + Offset [2]float32 + Pos [2]float32 + Scale [2]float32 + Size [2]int32 + Style HUDStyleFlags + Text string + Text2 string + Type HUDType + WorldPos Pos + ZIndex int16 + type HUDField uint8 + const HUDAlign + const HUDDir + const HUDItem + const HUDName + const HUDNumber + const HUDOffset + const HUDPos + const HUDScale + const HUDSize + const HUDStyle + const HUDText + const HUDText2 + const HUDWorldPos + const HUDZIndex + func (i HUDField) String() string + type HUDFlags uint32 + const ShowBreathBar + const ShowCrosshair + const ShowHealthBar + const ShowHotbar + const ShowMinimap + const ShowRadarMinimap + const ShowWieldedItem + type HUDID uint32 + type HUDStyleFlags uint32 + const StyleBold + const StyleItalic + const StyleMono + func (i HUDStyleFlags) String() string + type HUDType uint8 + const ImgHUD + const ImgWaypointHUD + const InvHUD + const StatbarHUD + const TextHUD + const WaypointHUD + func (i HUDType) String() string + type HotbarParam uint16 + const HotbarImg + const HotbarSelImg + const HotbarSize + func (i HotbarParam) String() string + type IDAOMsg struct + ID AOID + Msg AOMsg + type Interaction uint8 + const Activate + const Dig + const Dug + const Place + const StopDigging + const Use + func (i Interaction) String() string + type Inv []NamedInvList + func (i *Inv) Deserialize(r io.Reader) (err error) + func (i Inv) Serialize(w io.Writer) error + func (i Inv) SerializeKeep(w io.Writer, old Inv) error + func (inv Inv) List(name string) *NamedInvList + type InvList struct + Stacks []Stack + Width int + func (l *InvList) Deserialize(r io.Reader) (err error) + func (l InvList) Serialize(w io.Writer) error + func (l InvList) SerializeKeep(w io.Writer, old InvList) error + type Item struct + Name string + Wear uint16 + type ItemDef struct + CanPointLiquids bool + Color color.NRGBA + Desc string + Groups []Group + InvImg Texture + InvOverlay Texture + Name string + Palette Texture + PlaceFailSnd SoundDef + PlaceParam2 uint8 + PlacePredict string + PlaceSnd SoundDef + PointRange float32 + ShortDesc string + StackMax uint16 + ToolCaps ToolCaps + Type ItemType + Usable bool + WieldImg Texture + WieldOverlay Texture + WieldScale [3]float32 + type ItemMeta string + func NewItemMeta(fields []Field) ItemMeta + func (m *ItemMeta) SetField(name, value string) + func (m *ItemMeta) SetToolCaps(tc ToolCaps) + func (m ItemMeta) Field(name string) (s string, ok bool) + func (m ItemMeta) Fields() []Field + func (m ItemMeta) ToolCaps() (ToolCaps, bool) + type ItemType uint8 + const CraftItem + const NodeItem + const ToolItem + func (i ItemType) String() string + type Keys uint32 + const BackwardKey + const DigKey + const ForwardKey + const JumpKey + const LeftKey + const PlaceKey + const RightKey + const SneakKey + const SpecialKey + const ZoomKey + type KickReason uint8 + const AlreadyConnected + const BadName + const BadNameChars + const Crash + const Custom + const EmptyPasswd + const Shutdown + const SrvErr + const SrvIsSingleplayer + const TooManyClts + const UnexpectedData + const UnsupportedVer + const WrongPasswd + type LightBank uint8 + const Day + const Night + func (i LightBank) String() string + type LiquidType uint8 + const FlowingLiquid + const LiquidSrc + const NotALiquid + func (i LiquidType) String() string + type Listener struct + func Listen(conn net.PacketConn) Listener + func (l Listener) Accept() (Peer, error) + type LitFromBlks uint16 + const AlwaysLitFrom + func LitFrom(d Dir, b LightBank) LitFromBlks + type MapBlk struct + Flags MapBlkFlags + LitFrom LitFromBlks + NodeMetas map[uint16]*NodeMeta + Param0 [4096]Content + Param1 [4096]uint8 + Param2 [4096]uint8 + type MapBlkFlags uint8 + const BlkDayNightDiff + const BlkIsUnderground + const BlkLightExpired + const BlkNotGenerated + type MinimapMode struct + Label string + Scale uint16 + Size uint16 + Type MinimapType + type MinimapType uint16 + const NoMinimap + const RadarMinimap + const SurfaceMinimap + const TextureMinimap + func (i MinimapType) String() string + type ModChanSig uint8 + const JoinFail + const JoinOK + const LeaveFail + const LeaveOK + const NotRegistered + const SetState + func (i ModChanSig) String() string + type NamedInvList struct + Name string + type Node struct + Param0 Content + Param1 uint8 + Param2 uint8 + type NodeBox struct + ConnDirs DirBoxes + DiscoAll []Box + DiscoDirs DirBoxes + DiscoSides []Box + Fixed []Box + Type NodeBoxType + WallBot Box + WallSides Box + WallTop Box + type NodeBoxType uint8 + const ConnectedBox + const CubeBox + const FixedBox + const LeveledBox + const MountedBox + func (i NodeBoxType) String() string + type NodeDef struct + Climbable bool + ColBox NodeBox + Collides bool + Color color.NRGBA + ConnectSides uint8 + ConnectTo []Content + DigPredict string + Diggable bool + DiggingSnd SoundDef + DmgPerSec int32 + DrawBox NodeBox + DrawType DrawType + DrownDmg uint8 + DugSnd SoundDef + Floodable bool + FlowRange uint8 + FlowingAlt string + FootstepSnd SoundDef + GndContent bool + Groups []Group + InsideTint color.NRGBA + LegacyFaceDir bool + LegacyMounted bool + Level uint8 + LightSrc uint8 + LiqRenewable bool + LiquidMovePhysics bool + LiquidType LiquidType + MaxLvl uint8 + Mesh string + MoveResistance uint8 + Name string + OnRightClick bool + OverlayTiles [6]TileDef + P1Type Param1Type + P2Type Param2Type + Palette Texture + Param0 Content + Pointable bool + Replaceable bool + Scale float32 + SelBox NodeBox + SpecialTiles [6]TileDef + SrcAlt string + Tiles [6]TileDef + Translucent bool + Transparent bool + Viscosity uint8 + Waving WaveType + type NodeMeta struct + Fields []NodeMetaField + Inv Inv + func (nm *NodeMeta) Field(name string) *NodeMetaField + type NodeMetaField struct + Private bool + type Param1Type uint8 + const P1Light + const P1Nothing + func (i Param1Type) String() string + type Param2Type uint8 + const P2Byte + const P2Color + const P2ColorFaceDir + const P2ColorMounted + const P2ColorRotation + const P2FaceDir + const P2Flowing + const P2GlassLikeLevel + const P2Leveled + const P2Mesh + const P2Mounted + const P2Nibble + const P2Rotation + func (i Param2Type) String() string + type ParticleSpawnerID uint32 + type Peer struct + func Connect(conn net.Conn) Peer + func (p Peer) Recv() (_ Pkt, rerr error) + func (p Peer) Send(pkt Pkt) (ack <-chan struct{}, err error) + func (p Peer) SendCmd(cmd Cmd) (ack <-chan struct{}, err error) + type Pkt struct + type PlayerListUpdateType uint8 + const AddPlayers + const InitPlayers + const RemovePlayers + func (i PlayerListUpdateType) String() string + type PlayerPos struct + FOV80 uint8 + Keys Keys + Pitch100 int32 + Pos100 [3]int32 + Vel100 [3]int32 + WantedRange uint8 + Yaw100 int32 + func (p *PlayerPos) SetFOV(fov float32) + func (p *PlayerPos) SetPitch(pitch float32) + func (p *PlayerPos) SetPos(pos Pos) + func (p *PlayerPos) SetVel(vel Vec) + func (p *PlayerPos) SetYaw(yaw float32) + func (p PlayerPos) FOV() float32 + func (p PlayerPos) Pitch() float32 + func (p PlayerPos) Pos() (pos Pos) + func (p PlayerPos) StoodOn() [3]int16 + func (p PlayerPos) Vel() (vel Vec) + func (p PlayerPos) Yaw() float32 + type PointedAO struct + ID AOID + type PointedNode struct + Above [3]int16 + Under [3]int16 + type PointedThing interface + func PointedSameNode(pos [3]int16) PointedThing + type Pos Vec + func IntPos(ip [3]int16) (p Pos) + func (p Pos) Add(v Vec) Pos + func (p Pos) From(q Pos) Vec + func (p Pos) Int() (ip [3]int16) + func (p Pos) Sub(v Vec) Pos + type SoundDef struct + Fade float32 + Gain float32 + Name string + Pitch float32 + type SoundID int32 + type SoundSrcType uint8 + const AOSrc + const NoSrc + const PosSrc + func (i SoundSrcType) String() string + type Stack struct + Count uint16 + func (s Stack) String() string + func (stk *Stack) Scan(state fmt.ScanState, verb rune) (err error) + type Texture string + type TileAnim struct + AspectRatio [2]uint8 + Duration float32 + NFrames [2]uint16 + Type AnimType + type TileDef struct + Align AlignType + Anim TileAnim + B uint8 + Flags TileFlags + G uint8 + R uint8 + Scale uint8 + type TileFlags uint16 + const TileAbleH + const TileAbleV + const TileAlign + const TileBackfaceCull + const TileColor + const TileScale + func (i TileFlags) String() string + type ToCltAOMsgs struct + Msgs []IDAOMsg + func (*ToCltAOMsgs) DefaultPktInfo() rudp.PktInfo + type ToCltAORmAdd struct + Add []AOAdd + Remove []AOID + func (*ToCltAORmAdd) DefaultPktInfo() rudp.PktInfo + type ToCltAcceptAuth struct + MapSeed uint64 + PlayerPos Pos + SendInterval float32 + SudoAuthMethods AuthMethods + func (*ToCltAcceptAuth) DefaultPktInfo() rudp.PktInfo + type ToCltAcceptSudoMode struct + SudoAuthMethods AuthMethods + func (*ToCltAcceptSudoMode) DefaultPktInfo() rudp.PktInfo + type ToCltAddHUD struct + ID HUDID + func (*ToCltAddHUD) DefaultPktInfo() rudp.PktInfo + type ToCltAddNode struct + KeepMeta bool + Pos [3]int16 + func (*ToCltAddNode) DefaultPktInfo() rudp.PktInfo + type ToCltAddParticleSpawner struct + AOCollision bool + Acc [2][3]float32 + Amount uint16 + AnimParams TileAnim + AttachedAOID AOID + Collide bool + CollisionRm bool + Duration float32 + ExpirationTime [2]float32 + Glow uint8 + ID ParticleSpawnerID + NodeParam0 Content + NodeParam2 uint8 + NodeTile uint8 + Pos [2][3]float32 + Size [2]float32 + Vel [2][3]float32 + Vertical bool + func (*ToCltAddParticleSpawner) DefaultPktInfo() rudp.PktInfo + type ToCltAddPlayerVel struct + Vel Vec + func (*ToCltAddPlayerVel) DefaultPktInfo() rudp.PktInfo + type ToCltAnnounceMedia struct + Files []struct{ ... } + URL string + func (*ToCltAnnounceMedia) DefaultPktInfo() rudp.PktInfo + type ToCltBlkData struct + Blk MapBlk + Blkpos [3]int16 + func (*ToCltBlkData) DefaultPktInfo() rudp.PktInfo + type ToCltBreath struct + Breath uint16 + func (*ToCltBreath) DefaultPktInfo() rudp.PktInfo + type ToCltCSMRestrictionFlags struct + Flags CSMRestrictionFlags + MapRange uint32 + func (*ToCltCSMRestrictionFlags) DefaultPktInfo() rudp.PktInfo + type ToCltChangeHUD struct + Align [2]float32 + Dir uint32 + Field HUDField + ID HUDID + Item uint32 + Name string + Number uint32 + Offset [2]float32 + Pos [2]float32 + Scale [2]float32 + Size [2]int32 + Style HUDStyleFlags + Text string + Text2 string + WorldPos Pos + ZIndex int32 + func (*ToCltChangeHUD) DefaultPktInfo() rudp.PktInfo + type ToCltChatMsg struct + Sender string + Text string + Timestamp int64 + Type ChatMsgType + func (*ToCltChatMsg) DefaultPktInfo() rudp.PktInfo + type ToCltCloudParams struct + AmbientColor color.NRGBA + Density float32 + DiffuseColor color.NRGBA + Height float32 + Speed [2]float32 + Thickness float32 + func (*ToCltCloudParams) DefaultPktInfo() rudp.PktInfo + type ToCltCmd interface + type ToCltDeathScreen struct + PointAt Pos + PointCam bool + func (*ToCltDeathScreen) DefaultPktInfo() rudp.PktInfo + type ToCltDelParticleSpawner struct + ID ParticleSpawnerID + func (*ToCltDelParticleSpawner) DefaultPktInfo() rudp.PktInfo + type ToCltDenySudoMode struct + func (*ToCltDenySudoMode) DefaultPktInfo() rudp.PktInfo + type ToCltDetachedInv struct + Inv string + Keep bool + Len uint16 + Name string + func (*ToCltDetachedInv) DefaultPktInfo() rudp.PktInfo + type ToCltDisco struct + func (*ToCltDisco) DefaultPktInfo() rudp.PktInfo + type ToCltEyeOffset struct + First Vec + Third Vec + func (*ToCltEyeOffset) DefaultPktInfo() rudp.PktInfo + type ToCltFOV struct + FOV float32 + Multiplier bool + TransitionTime float32 + func (*ToCltFOV) DefaultPktInfo() rudp.PktInfo + type ToCltFadeSound struct + Gain float32 + ID SoundID + Step float32 + func (*ToCltFadeSound) DefaultPktInfo() rudp.PktInfo + type ToCltFormspecPrepend struct + Prepend string + func (*ToCltFormspecPrepend) DefaultPktInfo() rudp.PktInfo + type ToCltHP struct + HP uint16 + func (*ToCltHP) DefaultPktInfo() rudp.PktInfo + type ToCltHUDFlags struct + Flags HUDFlags + Mask HUDFlags + func (*ToCltHUDFlags) DefaultPktInfo() rudp.PktInfo + type ToCltHello struct + Compression CompressionModes + ProtoVer uint16 + SerializeVer uint8 + Username string + func (*ToCltHello) DefaultPktInfo() rudp.PktInfo + type ToCltInv struct + Inv string + func (*ToCltInv) DefaultPktInfo() rudp.PktInfo + type ToCltInvFormspec struct + Formspec string + func (*ToCltInvFormspec) DefaultPktInfo() rudp.PktInfo + type ToCltItemDefs struct + Aliases []struct{ ... } + Defs []ItemDef + func (*ToCltItemDefs) DefaultPktInfo() rudp.PktInfo + type ToCltKick struct + Custom string + Reason KickReason + Reconnect bool + func (*ToCltKick) DefaultPktInfo() rudp.PktInfo + func (cmd ToCltKick) String() (msg string) + type ToCltLegacyKick struct + Reason string + func (*ToCltLegacyKick) DefaultPktInfo() rudp.PktInfo + type ToCltLocalPlayerAnim struct + Dig [2]int32 + Idle [2]int32 + Speed float32 + Walk [2]int32 + WalkDig [2]int32 + func (*ToCltLocalPlayerAnim) DefaultPktInfo() rudp.PktInfo + type ToCltMedia struct + Files []struct{ ... } + I uint16 + N uint16 + func (*ToCltMedia) DefaultPktInfo() rudp.PktInfo + type ToCltMediaPush struct + CallbackToken uint32 + Filename string + RawHash string + ShouldCache bool + func (*ToCltMediaPush) DefaultPktInfo() rudp.PktInfo + type ToCltMinimapModes struct + Current uint16 + Modes []MinimapMode + func (*ToCltMinimapModes) DefaultPktInfo() rudp.PktInfo + type ToCltModChanMsg struct + Channel string + Msg string + Sender string + func (*ToCltModChanMsg) DefaultPktInfo() rudp.PktInfo + type ToCltModChanSig struct + Channel string + Signal ModChanSig + func (*ToCltModChanSig) DefaultPktInfo() rudp.PktInfo + type ToCltMoonParams struct + Size float32 + ToneMap Texture + Visible bool + func (*ToCltMoonParams) DefaultPktInfo() rudp.PktInfo + type ToCltMovePlayer struct + Pitch float32 + Yaw float32 + func (*ToCltMovePlayer) DefaultPktInfo() rudp.PktInfo + type ToCltMovement struct + AirAccel float32 + ClimbSpeed float32 + CrouchSpeed float32 + DefaultAccel float32 + FastAccel float32 + FastSpeed float32 + Fluidity float32 + Gravity float32 + JumpSpeed float32 + Sink float32 + Smoothing float32 + WalkSpeed float32 + func (*ToCltMovement) DefaultPktInfo() rudp.PktInfo + type ToCltNodeDefs struct + Defs []NodeDef + func (*ToCltNodeDefs) DefaultPktInfo() rudp.PktInfo + type ToCltNodeMetasChanged struct + Changed map[[3]int16]*NodeMeta + func (*ToCltNodeMetasChanged) DefaultPktInfo() rudp.PktInfo + type ToCltOverrideDayNightRatio struct + Override bool + Ratio uint16 + func (*ToCltOverrideDayNightRatio) DefaultPktInfo() rudp.PktInfo + type ToCltPlaySound struct + Ephemeral bool + Fade float32 + Gain float32 + ID SoundID + Loop bool + Name string + Pitch float32 + SrcAOID AOID + SrcType SoundSrcType + func (*ToCltPlaySound) DefaultPktInfo() rudp.PktInfo + type ToCltPrivs struct + Privs []string + func (*ToCltPrivs) DefaultPktInfo() rudp.PktInfo + type ToCltRemoveNode struct + Pos [3]int16 + func (*ToCltRemoveNode) DefaultPktInfo() rudp.PktInfo + type ToCltRmHUD struct + ID HUDID + func (*ToCltRmHUD) DefaultPktInfo() rudp.PktInfo + type ToCltSRPBytesSaltB struct + B []byte + Salt []byte + func (*ToCltSRPBytesSaltB) DefaultPktInfo() rudp.PktInfo + type ToCltSetHotbarParam struct + Img Texture + Param HotbarParam + Size int32 + func (*ToCltSetHotbarParam) DefaultPktInfo() rudp.PktInfo + type ToCltShowFormspec struct + Formname string + Formspec string + func (*ToCltShowFormspec) DefaultPktInfo() rudp.PktInfo + type ToCltSkyParams struct + BgColor color.NRGBA + Clouds bool + DawnHorizon color.NRGBA + DawnSky color.NRGBA + DayHorizon color.NRGBA + DaySky color.NRGBA + FogTintType string + Indoor color.NRGBA + MoonFogTint color.NRGBA + NightHorizon color.NRGBA + NightSky color.NRGBA + SunFogTint color.NRGBA + Textures []Texture + Type string + func (*ToCltSkyParams) DefaultPktInfo() rudp.PktInfo + type ToCltSpawnParticle struct + AOCollision bool + Acc [3]float32 + AnimParams TileAnim + Collide bool + CollisionRm bool + ExpirationTime float32 + Glow uint8 + NodeParam0 Content + NodeParam2 uint8 + NodeTile uint8 + Pos [3]float32 + Size float32 + Vel [3]float32 + Vertical bool + func (*ToCltSpawnParticle) DefaultPktInfo() rudp.PktInfo + type ToCltStarParams struct + Color color.NRGBA + Count uint32 + Size float32 + Visible bool + func (*ToCltStarParams) DefaultPktInfo() rudp.PktInfo + type ToCltStopSound struct + ID SoundID + func (*ToCltStopSound) DefaultPktInfo() rudp.PktInfo + type ToCltSunParams struct + Rise Texture + Rising bool + Size float32 + ToneMap Texture + Visible bool + func (*ToCltSunParams) DefaultPktInfo() rudp.PktInfo + type ToCltTimeOfDay struct + Speed float32 + Time uint16 + func (*ToCltTimeOfDay) DefaultPktInfo() rudp.PktInfo + type ToCltUpdatePlayerList struct + Players []string + Type PlayerListUpdateType + func (*ToCltUpdatePlayerList) DefaultPktInfo() rudp.PktInfo + type ToSrvChatMsg struct + Msg string + func (*ToSrvChatMsg) DefaultPktInfo() rudp.PktInfo + type ToSrvCltReady struct + Formspec uint16 + Major uint8 + Minor uint8 + Patch uint8 + Reserved uint8 + Version string + func (*ToSrvCltReady) DefaultPktInfo() rudp.PktInfo + type ToSrvCmd interface + type ToSrvDeletedBlks struct + Blks [][3]int16 + func (*ToSrvDeletedBlks) DefaultPktInfo() rudp.PktInfo + type ToSrvDisco struct + func (*ToSrvDisco) DefaultPktInfo() rudp.PktInfo + type ToSrvFallDmg struct + Amount uint16 + func (*ToSrvFallDmg) DefaultPktInfo() rudp.PktInfo + type ToSrvFirstSRP struct + EmptyPasswd bool + Salt []byte + Verifier []byte + func (*ToSrvFirstSRP) DefaultPktInfo() rudp.PktInfo + type ToSrvGotBlks struct + Blks [][3]int16 + func (*ToSrvGotBlks) DefaultPktInfo() rudp.PktInfo + type ToSrvHaveMedia struct + Tokens []uint32 + func (*ToSrvHaveMedia) DefaultPktInfo() rudp.PktInfo + type ToSrvInit struct + MaxProtoVer uint16 + MinProtoVer uint16 + PlayerName string + SendFullItemMeta bool + SerializeVer uint8 + SupportedCompression CompressionModes + func (*ToSrvInit) DefaultPktInfo() rudp.PktInfo + type ToSrvInit2 struct + Lang string + func (*ToSrvInit2) DefaultPktInfo() rudp.PktInfo + type ToSrvInteract struct + Action Interaction + ItemSlot uint16 + Pointed PointedThing + Pos PlayerPos + func (*ToSrvInteract) DefaultPktInfo() rudp.PktInfo + type ToSrvInvAction struct + Action string + func (*ToSrvInvAction) DefaultPktInfo() rudp.PktInfo + type ToSrvInvFields struct + Fields []Field + Formname string + func (*ToSrvInvFields) DefaultPktInfo() rudp.PktInfo + type ToSrvJoinModChan struct + Channel string + func (*ToSrvJoinModChan) DefaultPktInfo() rudp.PktInfo + type ToSrvLeaveModChan struct + Channel string + func (*ToSrvLeaveModChan) DefaultPktInfo() rudp.PktInfo + type ToSrvMsgModChan struct + Channel string + Msg string + func (*ToSrvMsgModChan) DefaultPktInfo() rudp.PktInfo + type ToSrvNil struct + func (*ToSrvNil) DefaultPktInfo() rudp.PktInfo + type ToSrvNodeMetaFields struct + Fields []Field + Formname string + Pos [3]int16 + func (*ToSrvNodeMetaFields) DefaultPktInfo() rudp.PktInfo + type ToSrvPlayerPos struct + Pos PlayerPos + func (*ToSrvPlayerPos) DefaultPktInfo() rudp.PktInfo + type ToSrvRemovedSounds struct + IDs []SoundID + func (*ToSrvRemovedSounds) DefaultPktInfo() rudp.PktInfo + type ToSrvReqMedia struct + Filenames []string + func (*ToSrvReqMedia) DefaultPktInfo() rudp.PktInfo + type ToSrvRespawn struct + func (*ToSrvRespawn) DefaultPktInfo() rudp.PktInfo + type ToSrvSRPBytesA struct + A []byte + NoSHA1 bool + func (*ToSrvSRPBytesA) DefaultPktInfo() rudp.PktInfo + type ToSrvSRPBytesM struct + M []byte + func (*ToSrvSRPBytesM) DefaultPktInfo() rudp.PktInfo + type ToSrvSelectItem struct + Slot uint16 + func (*ToSrvSelectItem) DefaultPktInfo() rudp.PktInfo + type ToolCaps struct + AttackCooldown float32 + DmgGroups []Group + GroupCaps []ToolGroupCap + MaxDropLvl int16 + NonNil bool + PunchUses int32 + func (tc *ToolCaps) UnmarshalJSON(data []byte) error + func (tc ToolCaps) DigTime(groups map[string]int16) (time.Duration, bool) + func (tc ToolCaps) MarshalJSON() ([]byte, error) + func (tc ToolCaps) String() string + type ToolGroupCap struct + MaxLvl int16 + Name string + Times []DigTime + Uses int32 + type Vec [3]float32 + func (v Vec) Add(w Vec) Vec + func (v Vec) Sub(w Vec) Vec + type WaveType uint8 + const LeafWaving + const LiquidWaving + const NotWaving + const PlantWaving + func (i WaveType) String() string