Java Reference
In-Depth Information
Next, change the sound effect from an
EXPLODE
to something more subtle, like
perhaps a
BURP
. The sound effects are listed in the docs too.
4
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.
Your Growing Toolbox
36%
You now know how to:
•Use the command-line shell
•Build with Java,
javac
•Run a Minecraft server
•Deploy a plugin
•Connect to a local server
•Use Java variables for numbers and strings
•Use Java functions
•Use
if
,
for
, and
while
statements
•Use Java objects
•Use imports for Java packages
•Use
new
to create objects
•Add a new command to a plugin
•Work with
Location
objects
•Find blocks/entities