Using EZPlugin

As we go through the book, we’ll talk more about the Java language, and explain what all the bits and pieces in HelloWorld.java actually do. But about half of this code isn’t really important to us right now. What’s more, it’s always going to be exactly the same for each plugin we use. We’re going to move it out of the way so you won’t have to keep looking at it in every single plugin that we work with.

In the downloaded code, I’ve included a special library called EZPlugin. I moved all the stuff that’s going to be the same for all plugins into EZPlugin.java. That’s going to make our next plugins much smaller and easier to read.

All of the other plugins (past HelloWorld) depend on EZPlugin, so we’ll need to build it before ...

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.