Updated Changing the lines (markdown)

filoghost 2015-02-11 15:17:47 +01:00
parent 0f06006fc8
commit 5040d28fe4

@ -17,7 +17,18 @@ This is how our hologram looks like now:
![Our hologram](http://i.imgur.com/l3QesRi.jpg) ![Our hologram](http://i.imgur.com/l3QesRi.jpg)
// To continue We want to change the last line with a sponge now:
``` java
hologram.removeLine(hologram.size() - 1); // Remember how arrays work, it's the same here
hologram.appendItemLine(new ItemStack(Material.SPONGE));
```
Result:
![Final result](http://i.imgur.com/Br36Poe.jpg)
Use the javadocs to see all the methods. These are just some basic ones.
**Notes:** **Notes:**
* Indexes start from 0, as in normal arrays. * Indexes start from 0, as in normal arrays.