-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WorldInfo modification #5
Comments
Maybe u need a object <-> NBT convention utility. |
Sorry if this is a stupid question: why is |
Ah, this is really an old post. At that time, I decided to stick with the Minecraft original spec, which means the lib should not wrap another layer of interface to those Minecraft data. Therefore, current Save/World reading is follow the original NBT structure and naming -- no capital character transformed. Back to question, at that time I somehow decide to refactor the module, and the fileName is not in the level.dat. Therefore, I comment it out. For the current status, you can refer the I kind of plan to make the |
Currently, we only support WorldInfo reading.
Though, we want the basic level of modification on the WorldInfo. (We already have a strong NBT support, which makes this much easier)
This is the current WorldInfo class. I only picked some important (I think) properties.
Feel free to support more properties you believe is fine to view/modify.
The readonly property don't need to write to nbt (of course).
The public property will be write into nbt.
说了那么多其实就是让玩家能有直接改动世界设置的能力2333level.dat里也存了玩家的数据,如果以后有精力甚至可以改玩家状态和背包数据等……但无论如何这玩意写起来比较枯燥The text was updated successfully, but these errors were encountered: