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 Absolute Beginner’s Guide to Minecraft® Mods Programming, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.