mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-11-22 18:35:14 +01:00
Updated Basic tutorial (markdown)
parent
bf679c9b79
commit
1dac880895
@ -44,8 +44,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.
|
||||
Example:
|
||||
```java
|
||||
// Suppose that "player" is a Player object obtained before (e.g. in a command), and "instance" is the plugin's instance.
|
||||
Hologram hologram = HolographicDisplaysAPI.createHologram(instance, player.getEyeLocation(), "Test hologram");
|
||||
// Suppose that "player" is a Player object obtained before (e.g. in a command), and "plugin" is plugin's instance.
|
||||
Hologram hologram = HolographicDisplaysAPI.createHologram(plugin, player.getEyeLocation(), "Test hologram");
|
||||
```
|
||||
|
||||
####Static API methods
|
||||
|
Loading…
Reference in New Issue
Block a user