Next Up

In this chapter we’ve seen how to use a HashMap to keep track of important game data by name or other object, and how to make functions private so that other plugins can’t access them, or public so that they can.

In the next chapter we’ll do more than just respond to user commands. We’ll see how to listen to the Minecraft server and respond to game events as they happen, and even create a few of our own.

Get Learn to Program with Minecraft Plugins, 2nd Edition 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.