mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-11-26 04:15:11 +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.
|
||||
Example:
|
||||
```java
|
||||
// Suppose that "where" is a Location object obtained before (e.g. in a command), and "plugin" is your plugin's instance.
|
||||
Location where = ...
|
||||
Plugin plugin = ... // Your plugin's instance
|
||||
Location where = ... // A Location object
|
||||
Hologram hologram = HolographicDisplaysAPI.createHologram(plugin, where, "Test hologram");
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user