User Tools

Site Tools


tutorial:modding_tips

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
tutorial:modding_tips [2019/08/13 17:52] – Added a pitfalls section containing a tip about the java awt class manxboytutorial:modding_tips [2019/09/16 16:46] – [Pitfalls] changed code to be surrounded by monospace block manxboy
Line 22: Line 22:
   * Packets always begin execution on the **network thread**, however accesses to most Minecraft things are not thread-safe. In general, if you're not exactly sure what you're doing, you want to parse the packet on the network thread (read all the values out), then use the **task queue** to perform additional operations on the **main server/client thread**.   * Packets always begin execution on the **network thread**, however accesses to most Minecraft things are not thread-safe. In general, if you're not exactly sure what you're doing, you want to parse the packet on the network thread (read all the values out), then use the **task queue** to perform additional operations on the **main server/client thread**.
  
-===== PitFalls =====+===== Pitfalls =====
  
-  * Don't import the package `java.awt` or any subclasses/packages. Several users have reported that it tends to hang Minecraft.+  * Avoid using the ''java.awt'' package and its subpackages. AWT does not work well on all systems. Several users have reported that it tends to hang Minecraft.
tutorial/modding_tips.txt · Last modified: 2024/04/15 02:25 by solidblock