Minecraft:Client.jar: Difference between revisions
More actions
Sync: new page from Minecraft |
Fix template calls: add MC/ prefix |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{Lowercase}} | {{MC/Lowercase}} | ||
{{Redirect|Client|the | {{Redirect|Client|the entity sometimes called "client"|Player|the [[Minecraft:block]] {{MC/In|be}}|Client request placeholder block}} | ||
{{Exclusive|java}} | {{MC/Exclusive|java}} | ||
{{Infobox program | {{Infobox program | ||
| image = Java Edition {{ | | image = Java Edition {{MC/V|java|nolink=1}}.png | ||
| title = client.jar | | title = client.jar | ||
| author = | | author = | ||
* [[File:Mojang Studios logo.svg|x20px|link=Mojang Studios]] | * [[File:Mojang Studios logo.svg|x20px|link=Mojang Studios]] Mojang Studios | ||
| platform = {{OS|win|mac|lin}} and other platforms that support running a JVM | | platform = {{MC/OS|win|mac|lin}} and other platforms that support running a JVM | ||
| programming language = {{OS|java}} {{ | | programming language = {{MC/OS|java}} {{MC/W|Java (programming language)|Java}} | ||
| license = [https://www.minecraft.net/en-us/eula EULA] | | license = [https://www.minecraft.net/en-us/eula EULA] | ||
| website = https://www.minecraft.net/en-us/download | | website = https://www.minecraft.net/en-us/download | ||
| source available = Partial | | source available = Partial | ||
| size = * ≈ 53 MiB ({{ | | size = * ≈ 53 MiB ({{MC/V|java}}) | ||
* ≈ 76 MiB (as of {{ | * ≈ 76 MiB (as of {{MC/V|java-snap}}) | ||
| version = | | version = | ||
* '''Release''': {{ | * '''Release''': {{MC/V|java}} | ||
{{#if: {{ | {{#if: {{MC/V|java-snap}} | * '''Snapshot''': {{MC/V|java-snap}} }} | ||
| date = May 16, 2009 ( | | date = May 16, 2009 (mc-161607) | ||
| customlinks = | | customlinks = | ||
'''Downloads''' | '''Downloads''' | ||
* [https://piston-data.mojang.com/v1/objects/{{#dpl:title=Java Edition {{ | * [https://piston-data.mojang.com/v1/objects/{{#dpl:title=Java Edition {{MC/V|java|nolink=yes}}|includepage={Infobox version}:clienthash}}/client.jar Release {{MC/V|java|nolink=yes}}] | ||
* [https://piston-data.mojang.com/v1/objects/{{#dpl:title=Java Edition {{ | * [https://piston-data.mojang.com/v1/objects/{{#dpl:title=Java Edition {{MC/V|java-snap|nolink=yes}}|includepage={Infobox version}:clienthash}}/client.jar {{ucfirst:{{MC/V|java-type|nolink=1}}}} {{MC/V|java-snap|nolink=yes}}] | ||
}} | }} | ||
{{ | {{MC/Relevant tutorial|See Minecraft's code}} | ||
<code>'''client.jar'''</code> is a {{ | <code>'''client.jar'''</code> is a {{MC/W|JAR (file format)|JAR}} file containing the ''Minecraft'' program and some default resources. It is launched by the user using the ''Minecraft Launcher''. | ||
The <code>client.jar</code> file is named using the | The <code>client.jar</code> file is named using the version number after download, e.g., ''1.21.5.jar''. The name ''client.jar'' is used on the distribution server, and commonly as a general term for all versions of the file. It is located at <code>.minecraft/versions/''version''/''version''.jar</code>, next to the <code>client.json</code> file. | ||
It can be opened with a | It can be opened with a file archiving program that supports ZIP files. | ||
== Contents == | == Contents == | ||
The file contains the ''Minecraft'' program in form of compiled Java class files. It also contains some, but not all, default resources; for instance, textures from the vanilla resource pack are stored here, but | The file contains the ''Minecraft'' program in form of compiled Java class files. It also contains some, but not all, default resources; for instance, textures from the vanilla resource pack are stored here, but sound files are stored separately. | ||
=== Directory structure === | === Directory structure === | ||
| Line 48: | Line 48: | ||
|{{File|file|MOJANGCS.SF}} | |{{File|file|MOJANGCS.SF}} | ||
}} | }} | ||
|{{File|directory|assets}}: The vanilla | |{{File|directory|assets}}: The vanilla resource pack. | ||
{{blist | {{blist | ||
|{{Collapse|title={{File|directory|minecraft}} | |{{Collapse|title={{File|directory|minecraft}} | ||
| Line 89: | Line 89: | ||
}} | }} | ||
}} | }} | ||
|{{File|directory|data}}: The vanilla | |{{File|directory|data}}: The vanilla data pack. | ||
{{blist | {{blist | ||
|{{Collapse|title={{File|directory|minecraft}} | |{{Collapse|title={{File|directory|minecraft}} | ||
| Line 102: | Line 102: | ||
|{{File|directory|datapacks}} | |{{File|directory|datapacks}} | ||
{{blist | {{blist | ||
|{{File|directory|minecart_improvements}}: The Minecart Improvements | |{{File|directory|minecart_improvements}}: The Minecart Improvements data pack. | ||
|{{File|directory|redstone_improvements}}: The Redstone Improvements | |{{File|directory|redstone_improvements}}: The Redstone Improvements data pack. | ||
|{{File|directory|trade_rebalance}}: The Villager Trade Rebalance | |{{File|directory|trade_rebalance}}: The Villager Trade Rebalance data pack. | ||
}} | }} | ||
|{{File|directory|dialog}} | |{{File|directory|dialog}} | ||
| Line 127: | Line 127: | ||
|{{File|directory|structure}}: [[Minecraft:Structure]] data. | |{{File|directory|structure}}: [[Minecraft:Structure]] data. | ||
|{{File|directory|tags}} | |{{File|directory|tags}} | ||
|{{File|directory|test_environment}}: Introduced in | |{{File|directory|test_environment}}: Introduced in 1.21.5. | ||
|{{File|directory|test_instance}}: Introduced in | |{{File|directory|test_instance}}: Introduced in 1.21.5. | ||
|{{File|directory|timeline}} | |{{File|directory|timeline}}: Timeline data. | ||
|{{File|directory|trade_set}} | |{{File|directory|trade_set}} | ||
|{{File|directory|trial_spawner}}: Trial spawner data. Introduced in | |{{File|directory|trial_spawner}}: Trial spawner data. Introduced in 1.21. | ||
|{{File|directory|trim_material}} | |{{File|directory|trim_material}} | ||
|{{File|directory|trim_pattern}} | |{{File|directory|trim_pattern}} | ||
| Line 157: | Line 157: | ||
|{{File|file|flightrecorder-config.jfc}} | |{{File|file|flightrecorder-config.jfc}} | ||
|{{File|file|pack.png}}: Vanilla resource pack and data pack icon. | |{{File|file|pack.png}}: Vanilla resource pack and data pack icon. | ||
|{{File|file| | |{{File|file|version.json}} | ||
}} | }} | ||
}} | }} | ||
=== Blaze3D === | === Blaze3D === | ||
Blaze3D is a private library that provides the graphics backend for {{ | Blaze3D is a private library that provides the graphics backend for {{MC/W|LWJGL}}/{{MC/W|OpenGL}} and {{MC/W|Vulkan}}{{MC/Upcoming|je 26.2}}<ref>{{mcnet|another-step-towards-vibrant-visuals-for-java-edition|Another step towards Vibrant Visuals|February 18, 2026}}</ref> used in the game's rendering, while also providing some low-level abstraction for {{MC/W|OpenAL}} and {{MC/W|glyph}} typographic information for audio control and fonts respectively. | ||
When used for rendering, Blaze3D sets up the render system and the graphics backend, managing the program's window, GPU devices, memory buffers, view states, and other resources. When used for audio, it provides audio devices, channeling, and playback control for the game's own | When used for rendering, Blaze3D sets up the render system and the graphics backend, managing the program's window, GPU devices, memory buffers, view states, and other resources. When used for audio, it provides audio devices, channeling, and playback control for the game's own sound engine. | ||
In the future, Mojang Studios plans to rework the codebase, which includes separating the game's rendering and gameplay codebase,<ref>{{mcnet|vibrant-visuals-java-edition|Vibrant Visuals on Java Edition|April 16, 2025}}</ref> and a dedicated thread for rendering<ref>{{mcnet|the-road-to-vibrant-visuals-on-java|The road to Vibrant Visuals on Java|October 22, 2025}}</ref>. | In the future, Mojang Studios plans to rework the codebase, which includes separating the game's rendering and gameplay codebase,<ref>{{mcnet|vibrant-visuals-java-edition|Vibrant Visuals on Java Edition|April 16, 2025}}</ref> and a dedicated thread for rendering<ref>{{mcnet|the-road-to-vibrant-visuals-on-java|The road to Vibrant Visuals on Java|October 22, 2025}}</ref>. | ||
| Line 170: | Line 170: | ||
== History == | == History == | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|java classic}} | |{{MC/HistoryLine|java classic}} | ||
|{{HistoryLine||mc-161607| | |{{MC/HistoryLine||mc-161607|Notch started distributing the game to other people, constituting the creation of client.jar.}} | ||
|{{HistoryLine||0.0.14a_08|Signature files, MOJANG_C.SF and MOJANG_C.DSA have been added to the META-INF folder.}} | |{{MC/HistoryLine||0.0.14a_08|Signature files, MOJANG_C.SF and MOJANG_C.DSA have been added to the META-INF folder.}} | ||
|{{HistoryLine|java indev}} | |{{MC/HistoryLine|java indev}} | ||
|{{HistoryLine||0.31|dev=20091223-0040|Java class files have been moved from client.jar/com/mojang/minecraft to client.jar/net/minecraft.}} | |{{MC/HistoryLine||0.31|dev=20091223-0040|Java class files have been moved from client.jar/com/mojang/minecraft to client.jar/net/minecraft.}} | ||
|{{HistoryLine|java infdev}} | |{{MC/HistoryLine|java infdev}} | ||
|{{HistoryLine||20100627|Java class files are now all located in the root directory of client.jar.}} | |{{MC/HistoryLine||20100627|Java class files are now all located in the root directory of client.jar.}} | ||
|{{HistoryLine|java}} | |{{MC/HistoryLine|java}} | ||
|{{HistoryLine||1.2.5|The signature files, MOJANG_C.SF and MOJANG_C.DSA have been moved to CODESIGN.SF and CODESIGN.RSA, respectively.}} | |{{MC/HistoryLine||1.2.5|The signature files, MOJANG_C.SF and MOJANG_C.DSA have been moved to CODESIGN.SF and CODESIGN.RSA, respectively.}} | ||
|{{HistoryLine||1.21.4|dev=24w45a|New entry point {{samp|net.minecraft.client.data.Main}} is present in client.jar, with similar command line structure as data generator in [[Minecraft:server.jar]].}} | |{{HistoryLine||1.21.4|dev=24w45a|New entry point {{samp|net.minecraft.client.data.Main}} is present in client.jar, with similar command line structure as data generator in [[Minecraft:server.jar]].}} | ||
|{{HistoryLine||26.1|dev=snap1|The Java class files in client.jar are no longer obfuscated, and are no longer located in the root directory of client.jar.}} | |{{MC/HistoryLine||26.1|dev=snap1|The Java class files in client.jar are no longer obfuscated, and are no longer located in the root directory of client.jar.}} | ||
}} | }} | ||
== See also == | == See also == | ||
* [[Minecraft:Bedrock Edition installation files|''Bedrock Edition'' installation files]], which contain the game client executable for {{BE}}. | * [[Minecraft:Bedrock Edition installation files|''Bedrock Edition'' installation files]], which contain the game client executable for {{MC/BE}}. | ||
* | * .minecraft | ||
* [[Minecraft:server.jar]] | * [[Minecraft:server.jar]] | ||
== Navigation == | == Navigation == | ||
{{Navbox Java Edition technical|general}} | {{MC/Navbox Java Edition technical|general}} | ||
[[Category:Development]] | [[Category:Development]] | ||
de:Minecraft.jar | |||
es:Minecraft.jar | |||
fr:Client.jar | |||
it:Client.jar | |||
ja:Client.jar | |||
ko:Client.jar | |||
nl:Minecraft.jar | |||
pl:Minecraft.jar | |||
pt:Client.jar | |||
ru:Client.jar | |||
tr:Client.jar | |||
uk:Client.jar | |||
zh:Client.jar | |||
Latest revision as of 20:07, 9 April 2026
- REDIRECT Template:Lowercase title
Template:Redr Template:Redirect Script error: No such module "Exclusive". Template:Infobox program Template:Pointer box
client.jar is a
- REDIRECT Template:Wikipedia
Template:Redr file containing the Minecraft program and some default resources. It is launched by the user using the Minecraft Launcher.
The client.jar file is named using the version number after download, e.g., 1.21.5.jar. The name client.jar is used on the distribution server, and commonly as a general term for all versions of the file. It is located at .minecraft/versions/version/version.jar, next to the client.json file.
It can be opened with a file archiving program that supports ZIP files.
Contents
The file contains the Minecraft program in form of compiled Java class files. It also contains some, but not all, default resources; for instance, textures from the vanilla resource pack are stored here, but sound files are stored separately.
Directory structure
The client.jar file has the following directory structure. Note that Java class files have been omitted for brevity.
Blaze3D
Blaze3D is a private library that provides the graphics backend for
- REDIRECT Template:Wikipedia
- REDIRECT Template:Wikipedia
Template:Redr and
- REDIRECT Template:Wikipedia
Template:Redr{{#vardefine: $version | je 26.2
}}{{#vardefine: $version2 |
}}<upcoming: Template:Version link & Template:Version link></upcoming: Template:Version link & Template:Version link><ref>Template:Mcnet</ref> used in the game's rendering, while also providing some low-level abstraction for
- REDIRECT Template:Wikipedia
Template:Redr and
- REDIRECT Template:Wikipedia
Template:Redr typographic information for audio control and fonts respectively.
When used for rendering, Blaze3D sets up the render system and the graphics backend, managing the program's window, GPU devices, memory buffers, view states, and other resources. When used for audio, it provides audio devices, channeling, and playback control for the game's own sound engine.
In the future, Mojang Studios plans to rework the codebase, which includes separating the game's rendering and gameplay codebase,<ref>Template:Mcnet</ref> and a dedicated thread for rendering<ref>Template:Mcnet</ref>.
History
See also
- Bedrock Edition installation files, which contain the game client executable for Bedrock Edition.
- .minecraft
- Minecraft:server.jar
de:Minecraft.jar es:Minecraft.jar fr:Client.jar it:Client.jar ja:Client.jar ko:Client.jar nl:Minecraft.jar pl:Minecraft.jar pt:Client.jar ru:Client.jar tr:Client.jar uk:Client.jar zh:Client.jar