> For the complete documentation index, see [llms.txt](https://ruang-feng.gitbook.io/deer-s/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ruang-feng.gitbook.io/deer-s/zheng-wen/recommended-mastery-skills/java-programming-basics.md).

# Java 编程基础

### Java 编程基础

相信绝大部分玩家对于Java的印象仅仅停留在游玩java版minecraft需要安装java，但是不知道Java干嘛的...

上面这些都是题外话了。为什么我推荐制作ModPack还需要懂得Java的基础编程呢？主要是因为forge的mod开发需要Java编程基础知识。如果你说有CoT，但是Mod有很多CoT不能实现的东西。

至于什么minecraft是Java编写都无所谓了（其实还是有关系的，但是和你直接关系没有很大），因为你又不参与mc开发，你只顺应modpack需求开发mod。个人觉得开发基于forge的mod需要掌握以下内容。

* 比如类、方法、包之类的基础概念
* 数据类型与运算符
* 对象
* 循环
* 重载（可选）
* 接口
* 异常处理（可选）
* 容器
* 泛型（可选）
* Annotation
* 反射（可选）
* 输入/输出（可选）


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ruang-feng.gitbook.io/deer-s/zheng-wen/recommended-mastery-skills/java-programming-basics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
