O'Reilly logo

Minecraft™ Mod Development in 24 Hours, Sams Teach Yourself by Jimmy Koene

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to Structure Your Mod

You have already done several things to structure your mod and make it easier to read and find bugs. For example, grouping all block and item variables in your mod file and adding an @Override to each method. However, more is required to make it look really clean.

Cleaning the Package

When you look at the classes in the package, it should look similar to Figure 22.1.

Image

FIGURE 22.1 The classes in the package.

This doesn’t look organized at all. To make this look better, subpackages can be made. Some commonly used subpackages are blocks, items, generation, and render. After fully cleaning this up, the list of packages ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required