$ cd Desktop
$ cd code/NameCow
Compiling with javac...
Creating jar file...
Deploying jar to /Users/andy/Desktop/server/plugins...
Stop and restart your server, connect your client, and you'll be able to run
the new namecow command. This command will spawn a new cow and give it
a name. In the Minecraft client, type the command followed by that cow's
You'll see these cows appear in the game, and when you look at each one,
you'll see its individual name appear.
This plugin spawns a new Cow object each time you run it. Each cow you
spawn has internal variables that keep track of its unique state: the cow's
own name, its position in the Minecraft world, its health, and so on.
While it's important that each cow is represented by its own separate object,
that's not a good enough reason to use objects. So why do we use objects at
all? There is a deeper reason.