mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-11-22 18:35:14 +01:00
Updated Basic tutorial (markdown)
parent
5040d28fe4
commit
50ee721a35
@ -59,10 +59,10 @@ Example:
|
|||||||
Plugin plugin = ... // Your plugin's instance
|
Plugin plugin = ... // Your plugin's instance
|
||||||
Location where = ... // A Location object
|
Location where = ... // A Location object
|
||||||
Hologram hologram = HologramsAPI.createHologram(plugin, where);
|
Hologram hologram = HologramsAPI.createHologram(plugin, where);
|
||||||
hologram.appendTextLine("A hologram line");
|
TextLine textLine = hologram.appendTextLine("A hologram line");
|
||||||
```
|
```
|
||||||
|
|
||||||
Done! With just two lines of code you created a hologram.
|
Done! With just two lines of code you created a hologram. The TextLine object represents the line you added: it can be used to retrieve and modify the content of that line. Inserting a line before won't change its content: the TextLine is not related to the position of line inside the hologram.
|
||||||
|
|
||||||
## 4) Full API documentation
|
## 4) Full API documentation
|
||||||
The full API documentation is located [here](http://filoghost.me/HolographicDisplays/), the most relevant classes are ```HologramsAPI``` and the interface ```Hologram```.
|
The full API documentation is located [here](http://filoghost.me/HolographicDisplays/), the most relevant classes are ```HologramsAPI``` and the interface ```Hologram```.
|
Loading…
Reference in New Issue
Block a user