tutorial:reading_mc_code
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tutorial:reading_mc_code [2023/11/17 19:02] – cph101 | tutorial:reading_mc_code [2026/09/03 16:50] (current) – Use the definite article where appropriate mcgambingpro | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Reading the Minecraft source ====== | ====== Reading the Minecraft source ====== | ||
| Reading the Minecraft source is an important skill in modding. This is mainly because | Reading the Minecraft source is an important skill in modding. This is mainly because | ||
| - | * Most of the Minecraft | + | * Most of Minecraft's inner workings |
| * Documentations/ | * Documentations/ | ||
| Line 14: | Line 14: | ||
| - Type the class name in the search box | - Type the class name in the search box | ||
| - | ==== Visual Studio Code ==== | + | ===== Visual Studio Code ===== |
| - Open the search pane with '' | - Open the search pane with '' | ||
| - Type the class name with prefix ''#'' | - Type the class name with prefix ''#'' | ||
| - | === Eclipse === | + | ===== Eclipse |
| - | - Open the search pane with '' | + | - Open the search pane with '' |
| In Visual Studio Code, you can also use '' | In Visual Studio Code, you can also use '' | ||
| Line 26: | Line 26: | ||
| Locating the part of code you want to see is a challenging task. Here are some tips. | Locating the part of code you want to see is a challenging task. Here are some tips. | ||
| - | * Take full advantage of IDE's ability to find the relevant code such as '' | + | * Take full advantage of the IDE's ability to find the relevant code such as '' |
| * Take a look at open source mods which are similar to what you want to make. | * Take a look at open source mods which are similar to what you want to make. | ||
| * If you are adding a new content, there is a good chance you need to access registries defined in '' | * If you are adding a new content, there is a good chance you need to access registries defined in '' | ||
| Line 50: | Line 50: | ||
| ===== FAQ ===== | ===== FAQ ===== | ||
| - | **Where | + | **Where |
| - | It's either in the user gradle cache ('' | + | It's either in the user gradle cache ('' |
| You can use the sources jar outside of your IDE. | You can use the sources jar outside of your IDE. | ||
tutorial/reading_mc_code.1700247722.txt.gz · Last modified: 2023/11/17 19:02 by cph101