Next Up

In this chapter you’ve seen how to add a new command to a plugin. Now you can start adding your own new ideas to existing plugins, and you can work with locations and blocks in the game. But as soon as you start dealing with a bunch of locations or a bunch of blocks, you have a problem: how does Java store lists of things like that, and how do you work with “piles” of data that you might need to find by name or in order?

In the next chapter we’ll add a command for remembering information: stuff you’ll need to keep track of. We’ll talk more about variables in Java: who can see them and who can’t, and—most importantly—how to keep and work with piles of data.

In short, we’re going to look at how to keep track of stuff.

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.