client.json

提供: Minecraft Wiki
移動先: 案内検索

Information icon.svg
この項目はJava Edition限定の要素です。
Book and Quill.png
この記事の内容は翻訳されていません。
あなたが内容を翻訳してみませんか?

client.json is the file that accompanies client.jar in .minecraft/versions/<version> and lists the version's attributes. When using the latest version of the Minecraft launcher, it is named <game version>.json. The JSON file for specific versions is located in the version_manifest.json file.

JSON format[編集 | ソースを編集]

This is the JSON format for client.json.

  • Nbtsheet.png The root tag.
    • Nbtsheet.png arguments:
      • Nbtsheet.png game: Contains arguments supplied to the game, such as information about the username and the version.
        • Nbtsheet.png An argument.
        • Nbtsheet.png A conditional argument.
          • Nbtsheet.png rules: A list of rules.
            • Nbtsheet.png A rule.
              • Nbtsheet.png action: Its value is "allow".
              • Nbtsheet.png features: Includes a set of features that can be checked.
                • Nbtsheet.png is_demo_user: Appears only in the first appearance of the compound tag.
                • Nbtsheet.png has_custom_resolution: Appears only in the second appearance of the compound tag.
          • Nbtsheet.pngNbtsheet.png value: An argument or a list of arguments that is added when the condition is matched.
      • Nbtsheet.png jvm: Contains JVM arguments, such as information about memory allocation, garbage collector selection, or environmental variables.
        • Nbtsheet.png: A conditional argument.
          • Nbtsheet.png rules: A list of rules.
            • Nbtsheet.png: A rule.
              • Nbtsheet.png action: Its value is "allow".
              • Nbtsheet.png os:
                • Nbtsheet.png name: Its value is "osx" for the first appearance of the compound tag and "windows" for the second and third. Does not appear in the fourth appearance.
                • Nbtsheet.png version: Appears only in the third appearance of the compound tag. Its value is "^10\\.".
                • Nbtsheet.png arch: Appears only in the fourth appearance of the compound tag. Its value is "x86".
          • Nbtsheet.pngNbtsheet.png value: An argument or a list of arguments that is added when the condition is matched.
    • Nbtsheet.png assetIndex:
      • Nbtsheet.png id: The assets version.
      • Nbtsheet.png sha1: The SHA1 of the assets file.
      • Nbtsheet.png size: The size of the version.
      • Nbtsheet.png totalSize: The total size of the version.
      • Nbtsheet.png url: The URL that the game should visit to download the assets.
    • Nbtsheet.png assets: As of Java Edition 1.15, this tag's value is "1.15".
    • Nbtsheet.png downloads:
      • Nbtsheet.png client: The client.jar download information.
        • Nbtsheet.png sha1: The SHA1 of the jar.
        • Nbtsheet.png size: The size of jar in bytes.
        • Nbtsheet.png url: The URL where the jar is hosted.
      • Nbtsheet.png client_mappings: The obfuscation maps for this client version. Added in Java Edition 19w36a but got included in 1.14.4 also. Repeats the structure of the client download information.
      • Nbtsheet.png server: The server download information. Repeats the structure of the client download information.
      • Nbtsheet.png server_mappings: The obfuscation maps for this server version. Added in Java Edition 19w36a but got included in 1.14.4 also. Repeats the structure of the client download information.
    • Nbtsheet.png id: The name of this version client (e.g. 1.14.4).
    • Nbtsheet.png libraries: A list of libraries.
      • Nbtsheet.png: A library.
        • Nbtsheet.png downloads: The library's download information.
          • Nbtsheet.png artifact: Info about the artifact.
            • Nbtsheet.png path: Path to store the downloaded artifact, relative to the "libraries" directory in .minecraft.
            • Nbtsheet.png sha1: The SHA1 of the file.
            • Nbtsheet.png size: The size of the file.
            • Nbtsheet.png url: The URL that the game should visit to download the file.
          • Nbtsheet.png classifiers: Appears only for some libraries.
            • Nbtsheet.png <classifier>: Specifies the artifact information for the artifact with this specific classifier. Repeats the artifact structure above.
        • Nbtsheet.png name: A maven name for the library, in the form of "groupId:artifactId:version".
        • Nbtsheet.png natives: Information about native libraries (in C) bundled with this library. Appears only when there are classifiers for natives.
          • Nbtsheet.png: This tag's name depends on the natives that appear in the classifiers, so it can be "linux", "macos", "windows" or "osx". Its value will be the corresponding classifier ("natives-linux" etc.).
        • Nbtsheet.png extract: Appears only in two libraries.
          • Nbtsheet.png exclude: Shows what to exclude from the extraction.
            • Nbtsheet.png: Its value is "META-INF/".
        • Nbtsheet.png rules: Appears only in the last two libraries. Contains a compound with the tags "action" and "os", as shown above.
    • Nbtsheet.png logging: Information about Log4j log configuration.
      • Nbtsheet.png client:
        • Nbtsheet.png argument: The JVM argument for adding the log configuration. Its value is "-Dlog4j.configurationFile=${path}".
        • Nbtsheet.png file:
          • Nbtsheet.png id: Its value is "client-1.12.xml", but may differ for older versions.[note 1]
          • Nbtsheet.png sha1: The SHA1 for this file.
          • Nbtsheet.png size: The size of the file.
          • Nbtsheet.png url: The URL the game should visit to download the log configuration..
        • Nbtsheet.png type: Its value is "log4j2-xml".
    • Nbtsheet.png mainClass: The main game class; for modern versions, it is net.minecraft.client.main.Main, but it may differ for older or ancient versions.[note 2]
    • Nbtsheet.png minimumLauncherVersion: The minimum Launcher version that can run this version of the game.
    • Nbtsheet.png releaseTime: The release date and time.
    • Nbtsheet.png time: Same as "releaseTime".
    • Nbtsheet.png type: The type of this game version. It is shown in the version list when you create a new installation. The default values are "release" and "snapshot".

History[編集 | ソースを編集]

Java Edition
1.6.113w16aWith the new launcher, versions are now stored in .minecraft/versions and each version has its own folder with a minecraft.jar (client.jar in the new version) and a .json file, which is the client.json.
1.7.213w39aAdded the Nbtsheet.png logging tag in the root tag.
1.1317w43aThe Nbtsheet.png arguments tag replaced the old Nbtsheet.png minecraftArguments tag.
1.1519w36aObfuscation mappings are now listed in the Nbtsheet.png downloads tag. They are implemented in 1.14.4 also.

Notes[編集 | ソースを編集]



引用エラー: 「note」という名前のグループの <ref> タグがありますが、対応する <references group="note"/> タグが見つからない、または閉じる </ref> タグがありません