package
0.0.0-20230403213534-aecff932a8f4
Repository: https://github.com/ev2-1/minetest-go.git
Documentation: pkg.go.dev

# Packages

This just wraps the minetest.LogLevels struct.

# Functions

Combine acks into one ack Waits for all acks to close then closes ack.
Add a Alias to the pool pls only use while init func.
add a function that is used to determin whether a blk can be unloaded all have to be false, to unload a blk its possible for a chunk to get unloaded without your function getting called, for a hook use `RegisterUnloadHook`.
Add more item definitions to pool.
Add a file to the media pool pls only use while init func.
Add a file to the mediaURL pls only use while init func.
Add more item definitions to pool Param0 field is overwritten.
Check if NewPos is valid.
No description provided by the author
No description provided by the author
No description provided by the author
BroadcastClientM broadcasts a mt.Cmd to a client slice.
BroadcastClientS broadcasts a mt.Cmd to a client slice.
Returns file:line of caller at i with 0 identifying the caller of Path.
CleanCache cleans the cache of expired blks.
No description provided by the author
No description provided by the author
ConfigVerbose is a helper function to indicate if verbose logging is turned on.
No description provided by the author
PlayerDelData removes a data field.
PlayerGetByName returns the UUID of a name.
PlayerGetByUUID returns the name corosponding to a given UUID.
PlayerGetData returns all client data of a given UUID.
PlayerPut updates a players name / adds a player.
PlayerSetData adds or updates some datafiled for a given UUID.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ForInConfig executes f `for k, v := range config` if any call of f results in a err != nil, err is returned.
No description provided by the author
GetBlk returns a pointer to block at a BlkPos.
Returns value which is is the config field if set or d if not ok is set if the config field existed.
Like GetConfig but does not return ok.
No description provided by the author
returns dim corosponding to name returns nil if Dim does not exist.
No description provided by the author
GetItemDef returns pointer to ItemDef if registerd.
No description provided by the author
GetNode returns a mt.Node and NodeMeta for a coordinate If no NodeMeta is specified returns mt.Node and nil.
GetNodeDef returns pointer to node def if registerd otherwise nil.
GetNodeID returns pointer to node def if registerd otherwise nil.
GetNodeID returns the Param0 of a node panics if not found.
GetPAO returns the ActiveObject representing clt.
No description provided by the author
No description provided by the author
Give adds cnt itms to inv as seen out of cs view.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IsCached returns true if there is a valid cache for pos p.
No description provided by the author
No description provided by the author
LoadBlk sends a blk and marks it as send only sends updates after that until client send DeletedBlks.
LoadConfig ensures the config is loaded.
No description provided by the author
No description provided by the author
Returns distance in 10th nodes speed is < 0, no max speed.
Mapps mt.ItemTypes to ItemTypes.
No description provided by the author
NewDim creates a new Dimension and registers it.
NodeMaps generates a NodeIdMap and IdNodeMap.
No description provided by the author
Converts Color to NRGBA.
No description provided by the author
gets path relative to executable.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Reads space or colon speperated strings from io.Reader.
Reads space speperated uint16 from io.Reader.
RealNodeName returns the underlying name of a given node checks aliases map if !ok returns name.
No description provided by the author
RegisterAO registers the ActiveObject.
No description provided by the author
DigCond gets called before Place is acted upon If returns false doesn't place node (NodeDef.OnDig not called) Gets called BEFORE NodeDef.OnPlace.
RegisterDim registers a new Dimension Id will be generated by NewDim if id == 0; returns id.
No description provided by the author
Gets called as soon as client authentication is successfull.
Gets called after client is initialized After player is given controll.
Gets called after client has left (*Client struct still exists).
No description provided by the author
RegisterMapGenerator `gen` for `name` overwrites if allready exists.
No description provided by the author
Gets called before packet reaches Processors If (one) func returns false packet is dropped.
Gets called each tick dtime is time since last tick.
Gets called for each packet received; as long as clt is initialized.
Gets called at end of each tick If you can, send packets in here.
PlaceCond gets called before Place is acted upon If returns false doesn't place node (ItemDef.OnPlace not called) Gets called BEFORE NodeDef.OnPlace.
RegisterPlayer as active.
No description provided by the author
PosUpdater is called with a UNLOCKED ClientPos.
Gets called for each packet received; even for uninitialized clients.
Gets called at registrationtime intended to initialize client data.
No description provided by the author
Gets called when server shuts down NOTE: (Leave hooks also get called).
No description provided by the author
No description provided by the author
Gets called each tick.
No description provided by the author
ReloadConfig reloads the config and triggers Config Reload hooks may break some modules.
RmAO removes AO after calling Clean on AO Returns false when ao was not registerd.
No description provided by the author
No description provided by the author
Starts the server.
No description provided by the author
No description provided by the author
No description provided by the author
SetNode sets a mt.Node and NodeMeta for a coordinate If no NodeMeta is specified it WILL be overwritten.
SetPos sets position returns old position.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SyncPlayerData, syncronizes all data for a given client.
No description provided by the author
No description provided by the author
Converts a Texture slice to a string slice.
No description provided by the author
No description provided by the author
TryCache caches if mapblk is either not cached already if cache is still valid, does nothing Refreshes Loaded.
No description provided by the author
Trys to create ItemDef from mt.ItemDef.
No description provided by the author
No description provided by the author

# Constants

ao.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
one lower than largest value.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
in 10th nodes.
No description provided by the author
No description provided by the author
only reached when saving.
No description provided by the author
No description provided by the author
No description provided by the author
go:generate stringer --type ItemType.
go:generate stringer --type ItemType.
go:generate stringer --type ItemType.
TODO.
go:generate stringer --type ItemType.
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
A Client represents a client.
The raw data loaded from the Database implements ClientData.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
InvIdentifierDetached.
InvIdentifierNodeMeta.
InvIdentifierPlayer.
InvIdentifierUndefined.
InvLocation.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NodeItem specifies a item that will palce NoteItem.Places.
No description provided by the author
PPos defines a PlayerPosition.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

ActiveObject.
ActiveObjectAPIAOPos specifies a standard interface to work with Positions of AOs.
ActiveObjectPlayer specifies a client ActiveObject.
ActiveObjectRelevant extends the ActiveObject to optionally overwrite the Relevance functions.
ActiveObjectTicker extends the ActiveObject to optional Ticked callbacks.
No description provided by the author
If a ClientDataSerialize is used as ClientData it will be serialized and saved in the players table.
Stolen from https://github.com/anon55555/mt/blob/bcc58cb3048faa146ed0f90b330ebbe791d53b5c/zerialize.go#L26.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MapGenerator specifies the API a MapGen has to use has access to mapdriver can but should (in most cases) not set blocks its not asked to.
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

map after load hooks.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Do not confuse with mt.ItemType.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author