Skip to content

Commit

Permalink
holoeasy 3.0.0...
Browse files Browse the repository at this point in the history
  • Loading branch information
unldenis committed Jan 31, 2024
1 parent ac52f61 commit 5a78c30
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 62 deletions.
72 changes: 70 additions & 2 deletions README.MD
Original file line number Diff line number Diff line change
@@ -1,6 +1,74 @@
A simple, modern and high-performant Java and Kotlin Minecraft Hologram library for 1.8-1.20.4 servers.

Coming in HologramLib 3
HoloEasy is a simple, modern and high-performant Java and Kotlin Minecraft Hologram library for 1.8-1.20.4 servers.

<p align="center">
<img src="gif.gif" alt="holoeasy video"/>
</p>

## Quickstart
<hr>

### As a dependency

#### Maven

```xml
<dependency>
<groupId>com.github.unldenis</groupId>
<artifactId>holoeasy</artifactId>
<version>3.0.0</version>
</dependency>
```

#### Gradle

```kotlin
implementation("com.github.unldenis:holoeasy:3.0.0")
```

### Start programming (Java)

```java
import static org.holoeasy.builder.HologramBuilder.*;

// you can use a Pool or a org.bukkit.Plugin for HologramKey
IHologramPool pool = HoloEasy.startInteractivePool(plugin, 60, 0.5f, 5f);

public void addHologram(Location location) {
hologram(new HologramKey(pool, "unique-id-holo"), location, () -> {
textline("Hello");
textline("{} Stats", Player::getName);
textline("Score {} - {}", $ -> 0, $ -> 1);
clickable("Click me").onClick(p -> {
p.sendTitle(ChatColor.AQUA + "Hi", ChatColor.BOLD + "by HoloEasy",
20, 20, 20);
});
item(new ItemStack(Material.ENCHANTED_GOLDEN_APPLE));
});
}
```

### Start programming (Kotlin)
```kotlin
import org.holoeasy.builder.HologramBuilder.*

// you can use a Pool or a org.bukkit.Plugin for HologramKey
val pool = startInteractivePool(plugin, 60.0, 0.5f, 5f)

fun addHologram(location: Location) {
hologram(HologramKey(pool, "unique-id-holo"), location) {
textline("Hello")
textline("{} Stats", Player::getName)
textline("Score {} - {}", { 0 }, { 1 })
clickable("Click me").onClick {
it.sendTitle(ChatColor.AQUA + "Hi", ChatColor.BOLD + "by HoloEasy",
20, 20, 20)
}
item(ItemStack(Material.ENCHANTED_GOLDEN_APPLE))
}
}
```


### Alpha
If you are reading this readme and want to use the latest stable version (2.6.0) the documentation can be found here:
Expand Down
Binary file added gif.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 0 additions & 53 deletions src/main/java/org/holoeasy/MyPlugin.java

This file was deleted.

7 changes: 0 additions & 7 deletions src/main/resources/plugin.yml

This file was deleted.

0 comments on commit 5a78c30

Please sign in to comment.