ToolDelta ICU

utils

attributeTMPJson
= 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

attributeJsonIO
= create_desperate_attr_class('JsonIO', [])

:class:JsonIO 已弃用。 如果想使用其中的函数,请改为使用 from tooldelta.utils import safe_json

attributeUtils
= 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

attributechatbar_lock_list
= players_in_chatbar_lock
funcloadPathJson(path, needFileExists=True, timeout=60, default=None)
parampathstr
paramneedFileExistsbool
= True
paramtimeoutint
= 60
paramdefault
= None

Returns

None
funcread_as_tmp(path, needFileExists=True, timeout=60, default=None)
parampathstr
paramneedFileExistsbool
= True
paramtimeoutint
= 60
paramdefault
= None

Returns

None
funcwrite_as_tmp(path, obj, needFileExists=True, timeout=60, default=None)
parampathstr
paramobj
paramneedFileExistsbool
= True
paramtimeoutint
= 60
paramdefault
= None

Returns

None