Sparky983 / vision-gui

A minimal GUI API for Paper
http://vision.sparky983.me
MIT License
15 stars 0 forks source link

Add Minestom support #200

Open Sparky983 opened 6 months ago

Sparky983 commented 6 months ago

TODO:

Sparky983 commented 4 months ago

A snapshot using the updated inventory API included in https://github.com/Minestom/Minestom/pull/2089 has been published.

Basic Usage

import me.sparky983.vision.minestom.MinestomVision;

MinestomVision vision = MinestomVision.create();

Player player = ...;

Gui gui = Gui.chest()
    .slot(Slot.of(0, 4), Button.of(ItemType.DIAMOND))
    .build();

vision.open(player, gui);

Maven

<repositories>
    <repository>
        <id>sparky983-snapshots</id>
        <url>https://repo.sparky983.me/snapshots</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>me.sparky983</groupId>
        <artifactId>vision-minestom</artifactId>
        <version>1.1.0-1.20.6-SNAPSHOT</version>
    </dependency>
</dependencies>

Gradle Kotlin DSL

repositories {
    maven("https://repo.sparky983.me/snapshots")
}

dependencies {
    implementation("me.sparky983:vision-minestom:1.1.0-1.20.6-SNAPSHOT")
}

Gradle Groovy DSL

repositories {
    maven { url 'https://repo.sparky983.me/snapshots' }
}

dependencies {
    implementation 'me.sparky983:vision-minestom:1.1.0-1.20.6-SNAPSHOT'
}
Sparky983 commented 4 months ago

Dependencies: