rollback.lua 759 B

12345678910111213141516171819202122232425
  1. ---@meta
  2. ---Rollback
  3. -----------
  4. -- Used in `minetest.rollback_get_node_actions`.
  5. ---@class mt.RollbackAction
  6. ---@field actor string `"player:<name>"`, also `"liquid"`.
  7. ---@field pos mt.Vector
  8. ---@field time number
  9. ---@field oldnode mt.Node
  10. ---@field newnode mt.Node
  11. -- Finds who has done something to a node, or near a node.
  12. ---@param pos mt.Vector
  13. ---@param range integer
  14. ---@param seconds number
  15. ---@param limit integer Maximum number of actions to search.
  16. ---@return mt.RollbackAction[]
  17. function minetest.rollback_get_node_actions(pos, range, seconds, limit) end
  18. ---@param actor string `"player:<name>"`, also `"liquid"`.
  19. ---@param seconds number
  20. ---@return boolean, string log_messages
  21. function minetest.rollback_revert_actions_by(actor, seconds) end