16. Create a Threaded Mod
In This Chapter
• Use an interface with a program
• Create threads
• Start, stop, and pause threads
• Catch errors
A computer term used often to describe the hectic pace of daily life is multitasking, which means to do more than one thing at once—such as browsing the Web while posting a message on Twitter and branch mining for diamonds at level 12 in Minecraft. A multitasking computer is one that can run more than one program at a time.
One sophisticated feature of the Java language is the ability to write programs that can multitask, which is made possible through a class of objects called threads.
Threads
In a Java program, each of the simultaneous tasks the computer handles is called a thread and the overall process ...
Get Minecraft Mods Programming Absolute Beginner’s Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.