mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-11-23 10:55:10 +01:00
Updated Changing the lines (markdown)
parent
aceba83dcf
commit
fc43f0551e
@ -3,7 +3,7 @@ _"hologram" is a Hologram object we've already created._
|
|||||||
|
|
||||||
Let's start by adding ten lines to the hologram:
|
Let's start by adding ten lines to the hologram:
|
||||||
``` java
|
``` java
|
||||||
for (int i = 0; i < 10; i++) {
|
for (int i = 1; i <= 5; i++) {
|
||||||
hologram.appendTextLine(Integer.toString(i));
|
hologram.appendTextLine(Integer.toString(i));
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@ -13,6 +13,9 @@ Let's insert an item before the first line:
|
|||||||
hologram.insertItemLine(0, new ItemStack(Material.GRASS));
|
hologram.insertItemLine(0, new ItemStack(Material.GRASS));
|
||||||
```
|
```
|
||||||
|
|
||||||
|
This is how our hologram looks like now:
|
||||||
|
![Our hologram](http://i.imgur.com/l3QesRi.jpg)
|
||||||
|
|
||||||
// To continue
|
// To continue
|
||||||
|
|
||||||
**Notes:**
|
**Notes:**
|
||||||
|
Loading…
Reference in New Issue
Block a user