mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-11-26 20:35:14 +01:00
Updated Changing the lines (markdown)
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.
|
||||||
|
Loading…
Reference in New Issue
Block a user