We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent edafaa3 commit 4bb7204Copy full SHA for 4bb7204
1 file changed
docs/Tutorial_zh.md
@@ -156,9 +156,9 @@ List<IntTag> _ = compoundTag.getAllTags(path).toList();
156
IntTag _ = compoundTag.getFirstTag(path);
157
158
// 获取第一个匹配的 NBT Tag 的值
159
-int _ = compoundTag.getFirstInt(path); // 如果不存在则抛出 NoSuchElementException
160
-Integer _ = compoundTag.getFirstIntOrNull(path); // 如果不存在则返回 null
161
-int _ = compoundTag.getFirstIntOrDefault(path, 0); // 如果不存在则返回默认值
+int _ = compoundTag.getFirstInt(path); // 如果不存在则抛出 NoSuchElementException
+Integer _ = compoundTag.getFirstIntOrNull(path); // 如果不存在则返回 null
+int _ = compoundTag.getFirstIntOrDefault(path, 0); // 如果不存在则返回默认值
162
```
163
164
## 读写 NBT 数据
0 commit comments