MC·一言API (HitokotoMC)
模组属性评比

距离显示结果还剩5票~

路过的这位少侠,你觉得这款Mod怎么样,可否愿意来评一评它呢?登录并评比
更新日志
  • 暂无日志..

历史编辑记录更多
    管理组申请

      暂无管理组..

    编辑组申请

      暂无编辑组..

    最近参与编辑

    MC·一言API

    HitokotoMC

    0.0

    无人问津

    昨日指数: 3
    昨日平均指数: 70.777

    196

    总浏览

    --

    资料填充率


    如何下载?
    • HitokotoMC MC ·一言 API

      使你的 MineCraft 可以输出一言中的文本。Working In Progress......

      信息 Info

      使用 /hitokoto <分类> 获取一言。

      使用 /hitokoto help 获取帮助。

      调用接口:https://v1.hitokoto.cn (请勿滥用, 最大1次/3s)

      配置 Config

      位置:config/HitokotoMC/basic.json。

      参数如下:

      • offline_mode:离线模式,原理是拉取此仓库,并且没有访问限制(施工中🏗️);

      • default_categories:默认分类,分类请见 /hitokoto help;

      • show_type:显示设置,chat-聊天框,actionbar - 动作栏,title - 标题。

      许可 License

      本模组使用 MIT 协议

      致谢 Thanks

      • Fabric 团队;

      • HitokotoAPI。

      开发者 Developer

      本模组中 hitokoto 包是对一言 API 的调用,使用:

      null 为默认。

      HitokotoResponse response = hitokotoAPI.fetchSentence(categories, null, null, null, null);

      API:

      /**
       * Fetches a sentence from the Hitokoto API.
       *
       * @param categories The categories of the sentence (e.g., List of Category).
       * @param encode The encoding type (e.g., 'text', 'json').
       * @param charset The character set (e.g., 'utf-8').
       * @param minLength The minimum length of the sentence.
       * @param maxLength The maximum length of the sentence.
       * @return The response from the API containing the sentence and its source.
       * @throws IOException If an I/O error occurs.
       */
      HitokotoResponse fetchSentence(List<Category> categories, String encode, String charset, Integer minLength, Integer maxLength) throws IOException;

      另请参阅:文档

    短评加载中..