Modding Snippets: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 15: | Line 15: | ||
<pre> | <pre> | ||
for (Map.Entry<String, GameTexture> tex : GameTexture.getLoadedTextures()) { | for (Map.Entry<String, GameTexture> tex : GameTexture.getLoadedTextures()) { | ||
tex.getValue().saveTextureImage("resources/"+tex.getKey()); | tex.getValue().saveTextureImage("resources/" + tex.getKey()); | ||
} | } | ||
</pre> | </pre> |
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!
for(Map.Entry<String, GameTexture> tex :GameTexture.getLoadedTextures()) {<br>tex.getValue().saveTextureImage("resources/"+tex.getKey());</br>}
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.