mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-11-22 18:35:14 +01:00
Updated Basic tutorial (markdown)
parent
cc6f28e46f
commit
d67b7a23a5
@ -55,8 +55,8 @@ public void onEnable() {
|
|||||||
The API is a class called HolographicDisplaysAPI, all the methods are static. With the method `createHologram(...)` you can create a hologram with some lines. The method returns the hologram just created.
|
The API is a class called HolographicDisplaysAPI, all the methods are static. With the method `createHologram(...)` you can create a hologram with some lines. The method returns the hologram just created.
|
||||||
Example:
|
Example:
|
||||||
```java
|
```java
|
||||||
// Suppose that "where" is a Location object obtained before (e.g. in a command), and "plugin" is your plugin's instance.
|
Plugin plugin = ... // Your plugin's instance
|
||||||
Location where = ...
|
Location where = ... // A Location object
|
||||||
Hologram hologram = HolographicDisplaysAPI.createHologram(plugin, where, "Test hologram");
|
Hologram hologram = HolographicDisplaysAPI.createHologram(plugin, where, "Test hologram");
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user