Modding Snippets: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 13: | Line 13: | ||
==== Getting All Textures - Author: Kamikaze ==== | ==== Getting All Textures - Author: Kamikaze ==== | ||
< | <pre> | ||
for (Map.Entry<String, GameTexture> tex : GameTexture.getLoadedTextures()) { | |||
tex.getValue().saveTextureImage("resources/"+tex.getKey()); | |||
} | |||
</pre> | |||
=== Equipment === | === Equipment === |
Revision as of 21:10, 8 September 2022
Please help us build the modding community by sharing some of your examples. Feel free to update this page via the wiki editor!
Utilities
Post your Utilities examples here.
Getting All Textures - Author: Kamikaze
for (Map.Entry<String, GameTexture> tex : GameTexture.getLoadedTextures()) { tex.getValue().saveTextureImage("resources/"+tex.getKey()); }
Equipment
Post your Equipment examples here.
NPCs
Post your NPC examples here.
Mobs
Post your Mob examples here.