utils
attribute
TMPJson= create_desperate_attr_class('TMPJson', [loadPathJson, read_as_tmp, write_as_tmp, tempjson.read, tempjson.write, tempjson.flush, tempjson.cancel_change, tempjson.get, tempjson.get_tmps])
:class:TMPJson
已弃用。
如果想使用其中的函数,请改为使用 from tooldelta.utils import tempjson
。
attribute
JsonIO= create_desperate_attr_class('JsonIO', [])
:class:JsonIO
已弃用。
如果想使用其中的函数,请改为使用 from tooldelta.utils import safe_json
。
attribute
Utils= create_desperate_attr_class('Utils', [JsonIO, TMPJson, ChatbarLock, ToolDeltaThread, simple_fmt, simple_assert, try_int, try_convert, fuzzy_match, split_list, fill_list_index, remove_mc_color_code, to_plain_name, to_player_selector, create_result_cb, thread_func, thread_gather, timer_event])
:class:Utils
已弃用。
如果想使用其中的函数,请改为使用 from tooldelta import utils
。
attribute
chatbar_lock_list= players_in_chatbar_lock
func
loadPathJson(path, needFileExists=True, timeout=60, default=None)
param
pathstr
param
needFileExistsbool
= True
param
timeoutint
= 60
param
default= None
Returns
None
func
read_as_tmp(path, needFileExists=True, timeout=60, default=None)
param
pathstr
param
needFileExistsbool
= True
param
timeoutint
= 60
param
default= None
Returns
None
func
write_as_tmp(path, obj, needFileExists=True, timeout=60, default=None)
param
pathstr
param
objparam
needFileExistsbool
= True
param
timeoutint
= 60
param
default= None
Returns
None